Jump to content

jmfekete

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by jmfekete

  1. jmfekete

    wml

    It sounds like you want to use a script that will send a voice notification, or a text message. Is this correct?
  2. OK, I've used the code an inputted it into my HTML file to retrieve the data from an XML file on my local machine, which is working beautifully, but now i need some direction on how to specify the XML source that's not locally on my machine. Instead it is on a web server that I access externally.How would I do that? I'm sure these questions are kind of dumb, but they didn't teach me this in college! I've searched the forum but haven't come across anything that could help me.Thanks!
  3. jmfekete

    sourceXML

    Hi,Currently I have an index page where users input 2 search criteria and on a web server, the parameters are passed to an ASPX page, which then displays the XML. In the Results page for that search, which is written in HTML, what is the source that I specify for the XML since it is displayed in an ASPX page?Scenario (just in case):Index.html - string "shoes" is entered in the first textbox and String "kitchener, ON" is entered in the second textbox. User then clicks on button "Search".At this point the 2 string parameters are passed into the Search.ASPX page on a web server, and the results are returned as XML (but the web address is still displayed as the ASPX page).So my question is, how do I specify that ASPX page (that contains the XML) as the XML source?Thanks!!!
  4. I am such an idiot. It's been so long since I did this type of programming I forgot you can't add a function within another function. I clued in once I saw your code.Thanks a lot! And excuse my slowness!
  5. hmmm. no luck.Here's some of my code to help you understand what's going on a little more:<script type="text/javascript"> function sendSearch(){var param1 = document.getElementById('param1');var param2 = document.getElementById('param2');var theForm = document.forms[0]; --> This is where i want to add the bit of code to replace " " with "+". theForm.action += "&searchTerm=" + param1.value + "&zipcode=" + param2.value;theForm.submit();}</script></head><body class="pageBG"><form name="search" method="post" action="http://blahblah/blah.aspx?" id="search"><table width="52%" border="0" align="center" name="tblInfo" class="tblProp"><tr><td class="TLHeading" colspan="3">TrueLocal Web Assignment</td></tr><tr><td width="42%"><input name="param1" type="text" id="param1" /></td><td width="39%"><input name="param2" type="text" id="param2" /></td><td width="19%" align="center"><input name="Search" type="button" id="Search" value="Search" onClick="sendSearch()"></td></tr><tr><td class="textContent">What are you looking for?</td><td class="textContent">Where are you looking for it?</td><td></td></tr></table></form>So how can I write code to search through param1 for spaces in the text?Thanks!
  6. Hi,I saw a snippet of code in Javascript for replacing space characters with another character. I have tried using it in a function() but my web pages is not working because of the while loop I've added.I have 2 text boxes on my page and want to replace any spaces in the string with "+".The code that I have found on this site is as follows:var loopProtect = 0;while(str.indexOf(" ") != -1 && loopProtect < str.length){str = str.replace(\ \,"+");loopProtect++;}Thanks!
  7. Alright, I don't mind using javascript, but this is how the system works.From my local machine, the index.html page has 2 text fields where the user enters 2 criteria to do a search on and clicks on the submit button to perform the search.By clicking on the submit button, it then passes the 2 fields to the web server that calls upon an ASPX page to perform the search, which then creates an XML file.What I want to do is instead of having it display the XML file to the user (because they won't understand what's going on), I want it to automatically redirect to and HTML page which calls upon elements within the XML to display the results on the page.Keep in mind, I do not have any control over what happens from the point the user clicks on the submit button in index.html until the XML file is created and displayed.Kinda tricky but i can just be overcomplicating things like usual.Thanks!
  8. OMG!!! You ARE the best!!!Thank you so much for all your help!
  9. Well, because this project serves as a "search" function, I only want to use post. I have a login/password to access the server's URL where the ASPX page resides (which is added to the form's action), but I cannot seem to pass those 2 parameters that the user inputs along to the ASPX so that the search can begin.I hope that made sense.
  10. Hi,Thanks for the quick response. I need to use the post method because my index page (which is local on my machine) interfaces with an ASPX page which is sitting on a server when the search is submitted. So I need to pass those parameters into the "Action" URL somehow, but I am not quite sure how.Any ideas?Thanks again!
  11. Hi,My index page has two text fields where they input what they want to do a search on and in what city, and then hit submit. I am then supposed to pass those 2 parameters into the form's "action". For example:<form name="search" method="post" action="http://blahblah/blah.aspx?zipcode=PARAMETER1&item=PARAMETER2" id="search"> <table width="60%" border="0" align="center" name="tblInfo"> <tr> <td width="30%"><input name="whatTxt" type="text" id="whatTxt" onKeyDown="(search,event)"></td> <td width="33%"><input name="locationTxt" type="text" id="locationTxt" onKeyDown="(search,event)"></td> <td width="37%"><input name="Search" type="submit" id="Search" value="Search"></td> </tr> <tr> <td>What are you looking for?</td> <td>Where are you looking for it?</td> <td></td> </tr> </table></form>How can I set PARAMETER1 and PARAMETER2 to the text entered by the user once they click on "Search"?I thought that if I put the field's ID name in place of PARAMETER1 and PARAMETER2 in the action URL that it might pass them through, but I was sadly mistaken.Thanks to anyone who can shed some light!
  12. Hi,I just want to know how to display elements in an XML file in an HTML file.Thanks in advance for any help you can provide!
×
×
  • Create New...