I have a form that had many drop down boxes. When a user selects a specific request type it populates the standard turnaround time in business days.
I need the "Standard Delivery Date" box to then autopopulate today's date plus the standard turnaround time that pops up in that field. How??
Here is a code that I have been working on - but so far it's not working.code...
var state = getState(txtZip.value) for(var i = 0; i < optionBox.options.length; i++) if(optionBox.options[i].value == state) return optionBox.options[i].selected = true; for(var i = 0; i < optionBox.options.length; i++) if(optionBox.options[i].value == "XX") return optionBox.options[i].selected = true;
I am looking into using this very cool script, but I have 1 small issue... I need to use any other tag other than the value. I am using the value for PHP and need to have a 2 char value here... but I have a full value going to PHP. Would it be possible for me to have the script read the id ?
I have never done this before and I need some help. Can someone tell me how can I create a search engine within my website to search through the text on a certain page? This is the site I am talking about:http://www.21stcenturyworld.com/community.html
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the results displayed on the same page with one column text and an image of the product. I've seen several tutorials that create site-level searches that will bring back a search results page with options to choose from. I am looking to create a search that does not bring back this "results" page, but displays an image of the product instead. Given the nature of the products, search results will only bring back one specific item, and so, I would like to skip the "results" page altogether. Any thoughts?
I want to change this code so that I can have multiple word variables I can change, possibly separated by comas I guess?.. Open to other idea's as well. Do you also know how I can make it so that it's NOT case sensitive? Code:
Here's what I'm trying to do:
I'm posting search data to a PHP form to run a query on a database.
The structure is sort of like this:
So I'm thinking I need to create search objects or arrays. Initially, I thought I could do something like this:
This doesn't seem to work. It says object not defined whenever I try to do something.
I've also tried creating a JSON object like this:
This will allow me retrieve the data like I want to:
The problem is I can't figure out how to add data to the JSON object without manually typing it in. I need to be able to loop through form elements on my HTML page and set them to these variables. I'm using jQuery and doing something like this:
I'm looking for a script or applet that will allow users to search by zipcode or selected category for results. I would like something already built so I can just customize it to our needs. I'm sure it will need to have a database setup for it to work which I am fine with doing. I can modify scripts and files but I have no idea where to start with this from scratch.
We also use the same data for our "Layar" app for the iphone and driod phones. Has anyone messed with layar scripting and databases? We are using hoopala now which makes data entry simple but we cannot modify their database to add category options. It would be nice to find an alternative to hoopala so we could use one database for both the layar app and the zipcode/category search on our site.
Currently I'm trying to modify OOTB code for a search box.
After a search term has been typed in, the users picks a match which opens in a new window, then they close the new window, and try to back space over the typed term, there is a white bar that remains below the text entry box.
For example, if the word bathroom is typed in the text box, a list of possible matching topics is displayed. You pick the option to Where is the bathroom?. This opens a new window/tab - just close the tab. The original search box still displays the term bathroom, but if you backspace to remove the term, then a white bar remains below the text entry box.
How do I get rid of the white bar when the text entry box is empty?
The code being used is shown below - attachment shows the problem as it appears in IE and FF:
I have a search field on the website, and when I type a word to search, it search good, but after preforming the search, the search term from search text field disappears and become the default 'Search' word.
So I've come across something which I need to find for a project which would also be very useful in general. How can I create the embed code which has the ability to be copied? I require something similar to the youtube embed code snippet, where you can click on the embed area, it highlights the content for you to copy. I've been doing some searching but can't find much as yet.
I am a beginner in programming however I am close to completing this task for my uni course and I know what method is needed "toLowerCase()" yet I am not sure on where it needs to be placed. :confused: If i paste in the question and then the coding I have done so far to discover if string s appears in any of the URLs in the array pages. Gives an alert of s together with 'found' or 'not found' as for find1C. [Note that the search should be case insensitive so that 'lboro' and 'Lboro' and 'LBORO' would all be found in [URL]... all remaining functions should also be case insensitive in this way]
What I would like to create is a confirm dialog box to pop up when the user clicks the delete button. If the user clicks 'ok' then the php script is actioned, if they click 'cancel' then the box just disappears off the screen.