I work at a bar in Louisiana and have been put in charge of the website.
Every day (Sun-Sat) we update the main page with who is bartending that night, along with a few other edits.
I don't come into the office until 2pm, Mon-Fri.
I would really prefer if the website could be updated 'automatically' at like, 4am or something, every day. Instead of me struggling to figure out how I'll update it on weekends.
What I'm thinking is have an 'updates' folder with pages labeled either by weekday (sunday.html monday.html tuesday.html, etc) or by date (072410.html, 072510.html, etc). Then the main page having some code that pulls from those files. (I'd prefer the weekday setup if I have the option)
Since the bar doesn't close until 2am most days, I'd rather not have it change over at exactly midnight, but I'm willing to work with that if it means I know it's being updated every day regularly.
i am trying to put some code within my js such that, when the server "sends it a message" it refreshes the page. now i have the refresh part of things. the place where i am stuck is, how can my server (tomcat, am using a java web app) send a very small piece of info to the js which when it receives it, refreshes the page.
Thought it would be nice if, instead of using php for redirecting to a success/fail message in a separate php file and redirecting again back to the form with a 3 second delay, I could get a jQuery script to pop up with a success/fail message, so avoiding all the clumsy php redirecting and page refreshing.I've searched for plugins, but they all act on event listeners attached to a submit button or other clickable html element.Ive searched the net for ages and can't find an easily understood explanation and complete example, where a jQuery pop up notification is displayed in response to a php script executing a db update.
i want to add a part of the website that will be generated from mysql database from an external file just like php include just that i want these parts to update realtime without refreshing the browser. i also want it to have pagination.
I'm trying to code a feature for my website using DHTML where the person viewing the website can rotate between viewing the positive/negative points of the website being reviewed. This example was in the publication called Using HTML 4 by Lee Anne Phillips. Code:
I have a ajax program on a page on website A. And I need to let it talk to a program on website B. I tried to put website B into the url of the parameter but it doesn't work.It gives me a "[objet XMLHttpRequest]" error.here is the code on website A:
I am setting up a web page to collect some data via a questionnaire. The questionnaire part is working fine, but I need some help with one part. I have two different versions of the questionnaire (basically just different orders of questions) and would like the users to be redirected to one of the two versions. The idea I had was to have a redirection page that simply had a web page counter on it (like so many pages have now days) and based on this counter, people would automatically be redirected to one of the two versions of my questionnaire. Basically, if the counter was odd, the person would be routed to version 1 and if even, they would be routed to version 2. I thought this would be similar to redirecting people based on the type of browser they are using or their language settings. However, I was recently told there is not a way to do what I proposed above. So, this leaves me with two questions:
1. Was the advice that I received accurate in stating that having a simple script to redirect the user based on a web page counter is not possible?
2. If so, does anyone have some advice as to how I could go about automatically redirecting people to one of two web pages?
Here's the problem when using IE for Windows: I have a website that has Word Documents to download, however these doc's open as word in the browser window. What I want: To automatically launch the save as box from a link Any dhtml tricks/advice for this?
I need to find the code that makes a web page immediately jump over to another url the moment a visitor arrives to it. I know the code is short, but I can't remember it. Anybody know what that code is?
Is ther anyway i can automatically fill out forms and submit them thru java?
supposing i hav a normal txt file that contains all data that needs to be filed out into the form, is there anyway i can fill out a form and submit it automatically by providing only the URL of the form and the txt file?
It pops a new window, containing the multi-page form (both pages are on the same server so cross-scripting is not an issue).
It then scans through every element in document.forms.elements and takes the appropriate action depending on the input type, i.e., randomly select a radio button in a group, randomly check a box or not, insert random text into a text box, randomly select a drop down menu, etc., then it submits the form and repeats the process until a "finished" state is reached.
I want add a gif picture link to a website from by the website download pictures, but it does not work. If I reload the website and use the script, the .gif type is replaced to .htm and it's don't show.
It is able to give me a popup for every 2 hrs. But whenever the user reloads the page after 1 hr. The function is called again and the count starts from 0hrs again. OR for example if 20 mins already passed then if i am going to a new page then the function is called again and so the timer starts again. I am not getting any idea how to restrict it calling every time. OR send that 1 hr again to the function so that it starts from there. I tried some thing like setting the value in a session variable and then starting the counter from that value.
I was hoping somebody could point me in the right direction. i want to have my menu (horizontal ) , with links,on an external sheet as it keeps growing and would be easier to update. Would any body know where i could find a script or tutorial to help ? i have been searching but to no avail
Multiply the code blocks in your script, to add more sites in the similar manner. You could even combine it with `window.open(...)` functionality to open more sites, but that may get the script inclusion more complicated.
Note: This only illustrates an idea and needs lots of further work, it's not a complete solution.
This is the code I found on stackoverflow for automatic login to websites but it does not work. I am doing exactly as told is ther anything wrong