Jump to content

jmfekete

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by jmfekete

    wml

    Plz i want make script with wml to when i send mail to one persone it ring on it his phon and told him you recive message from ww.mysite.comwhat do u want i c`t under stand
    It sounds like you want to use a script that will send a voice notification, or a text message. Is this correct?
  1. 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!

  2. 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!!!

  3. 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!

  4. 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!

  5. Use XSLT. If you don't have a server side scripting language, you can use this JavaScript to execute the transformation from within the (X)HTML page.
    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!
  6. you would have to use javascript for that, but then you will have the same 2 fields passed as post and get...is this what you are going for?
    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.
  7. just set the forms method="get" and it is done automatically.
    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!
  8. 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!

×
×
  • Create New...