What is the correct way to incorporate a .js file into an HTML file *IF* the .js file on a hard disk?
What I have tried is listed below but it does not work... When trying to access a function module in one of the .js files, I get an error that the function module is not defined (which would lead me to believe that it is not being imported with the .js "src" instruction.
Context: swfObject2 dynamic embedding.. so the swf object is not written into the code that's sent to the browser. (The swf is there on the resulting page in the browser; doing it's thang just dandy and waiting for further instruction from user action). Function in swf "functInSWF" registered using ExternalInterface.callback(); (I'm working in AS2).
I've tried (what's not recommended) getElementById with the same result.
I had a small problem in my page. There are some select menus that the user can select and there is a download button which on click should allow the user to download a file based on the selected options...I used the following code under the onclick event but the problem is that it allows the user to download the file but the page refreshes itself or in other words all the selections are lost when the download window opens
I have the following JS. In this, when I press the submit button, I have a JS function that will create 2 input boxes and one more submit button.
When I type the values in those input boxes and click on the newly created submit button, the addition of the above input values should display. But the entire input boxes and submit button gets lost and the old page is getting displayed.
i have a login area (user/pass text boxes). when the user submits the form, the page is reloaded with with a global php variable "loggedIn" set to true. i also store the username and password in the page in a hidden form -- so that it can be passed to other pages on the site through standard navigation (maintaining the "loggedIn" status). however, is there any way to save this information if the user hits refresh?
as it stands, whenever the user hits refresh, the user/pass data is lost, and loggedIn is set to false. can this be worked around without using cookies?
I have written code that looks like this. The code works great for about a split second and then the page refreshes itself and I am back to square one. How can I prevent the page from refreshing itself and wiping out my jQuery changes. The page I am working on is located here [URL]
My site has a menu + iframe layout. Clicking on the menu link loads a page in the iframe. The iframe is set to a specified dimension.
I only have a single page that loads in the iframe. Clicking on the menu link loads a specific section on the page using the name anchor. The specified dimension of the iframe allows for the selected info to be visible.
I can create a new page for every link, but to the site's nature (its like a catalogue), I rather have it on a single page and have it called by the name anchor. I am trying to set it so that every time a menu link is clicked, the single page refreshes itself, and then goes to the anchored location. I need this for a reason.
I have tried many things but I have not got it working.
I'm about to pull my hair out dealing with this pixel.This is the information CJ has given me. The OID (order ID) is a unique alphanumeric ID that needs to be generated on your end, and will be assigned to each unique transaction that occurs. If the OID is not unique, meaning if our system detects a duplicate OID for another transaction, the second transaction will be ignored, which is why it is important that unique OIDs are generated for each transaction (in your case, for each lead form that is completed and submitted) and
What I would suggest doing for your OID, is hardcoding a time and date stamp into the pixel to act as the OID. When you do this, you must exclude any symbols (colons, slashes, periods, etc) from the time/date stamp, and have the time be recorded all the way down to the millisecond. Since it will be extremely rare (if it happens at all) that two transactions will occur within the same millisecond, it will create a unique number to act as the OID for each lead that is submitted.
Example: I'm working on a volusion site that uses asp. There's basically only one page that's changed dynamically. I would like to display some html when and only if the cart has any items in it. But also not to show up on the check-out pages.
The page dynamically displays "Your cart has 1 item in it..." when the visitors puts something in their cart.
I found the below script that works fine for the actual countdown, but when the user refreshes the page, the countdown starts from 5 minutes again.
What I am trying to do, is handle users that put something in their shopping cart and then get side tracked or what ever reason and that same product then being purchased by another person when I only have 1 left.
So using PHP I am going to subtract the qty of that product by 1 and then I want the website to either put it back, if the users checkout times out, or if a normal process it is taken out permanently.
I have a form that uses ajax to load some of the elements. If the database says a checkbox has been previously ticked then the box itself is unavailable in the form. Ajax continuously checks and updates the form accordingly. The problem I'm having is when I check an available box ajax unchecks it the next time it refreshes. I just need the form to "remember" which boxes I've checked after an ajax update. Does anyone know how to retain new form entries between ajax refreshes?
Im doing an Ajax call which calls a Java struts 2 action. This action basically just does a DB update. There is no data being returned to the client. The page refreshes to a blank white page. I dont want his to happen. I want a pop up box on my page. The ajax call happens when i press a save button. Here is the jquery code:
Im a Jquery newbie. As far as I can gather JQuery is expecting data back. It gets nothing back (which is what I want). But Jquery does a refresh with this. Hence why my page goes to a blank white page. I think this is what is happening
I was thinking of putting in my dummy div and loading the blank/empty no html into the dummy div but there has to be a way to stop the white page showing up. I dont get pop up boxes either as shown in code above: