I developed a website which should be in german and english. I need to load the site depending on the browser's language. If the user's browser is english and he types URL>..then I have to load the english site with URL...and if the language is german I have to load always URL... I have created a redirect.htm on IIS as the default document and that is not working.
[URL]..Default.aspx I have both a carousel with images andalso animagemap(notnot published yet)with coords that when clicked i want to write to a cookie file which image or image map coordinate was clicked, so when they are hyperlinked to the next page the correct div opens based on first reading the cookie written to on the previous page. Anybody have a basic script for reading and writing to a cookie using jquery in this fashion?
What I am trying to do is add a list box to my site that when the user clicks on a certain item and presses submit the correct code gets sent to my cgi cart.
I would the user of my website to click a link on a page and for some information to display on the page without a reload of the page. This is what I would like to happen in my specific case:The user clicks the name of the cd and the full track list and a small image displays above it, without going to a new page.
I have a page that has several layers that I will either show/hide based on a graphic/tab that the user clicks. (works perfectly)
On several of the layers there are forms that the user can update information on. Well, after the user updates the information, I need to 1.) refresh the data on the page(means a reload of the page), and 2.) take the user right back to were they started.
My problem is that when I refresh, the page goes back to the 1st layer that is set as default to show.
So, here is what I did. I have two functions.
Function 1 is called when the user clicks on one of the tabs (Assets) in this case. This will 1.) show the Assets tab and 2.) hide all the rest of the tabs.
Well if I update that form for Assets, I need to 1.) refresh the data and 2.) bring the user right back to Assets.
What I did for this (please tell me if there is a better way) was to set a hidden field with the lastlocation of where the user clicked. In this case the field value is now set to Assets.
So far everything is working great...
Well, if I submit the form because I've updating information, I need to return back to the assets layer. To do this I set the location.url and put a var in the url that I evaluate when I OnLoad the page. If the value = Assets then I am able to show/hide the layers to get to the Assets.
Again, this works great after much banging of my head against the wall... Here come the problem.
Because I set the location.URL (I've also tried location.href) the browser will automatically refresh. I do not want this. I want to set the url and only refresh when I want to.
For example when I submit a form that updates data.
I made a form with a tooltip function when you hover over an input field.But when I load the page, after about 500ms, the page turns white and the ""Loading..."-message from the browser stays forever.I found out that this is because of the tooltip function, especially the code:document.write(table)
Here's the javascript: //////// Tooltip code ///////////////////////
I have a div tag that I want to loop through and refresh at the end of the loop. I understand Ajax is probably the best option for this but how do I refresh just the div tag alone without reloading the page?
In the title I meant to say How do I refresh a div tag without reloading the page?
I have a window that generates a popup. In the popup a link takes you to a second page within the popup.In the 2nd page of the popup I have the following
Code:
<body onUnload="opener.location.replace(window.opener.location);"> This reloads the original parent window. This reloads the page but is causing the problems, the page seems to change but it is going to this URL
http://www.mysitehere.com/[object]
It should refresh the page but instead it is adding the [object] piece to the end.
Do you have any idea's on how to fix this (or an alternative)?
I'm trying to learn js &html5. now i have an issue. i'm working on a dice game (craps) using the html5 <canvas>. my dice are working fine but every time i click the "roll" button the page reloads which resets my form. the form provides feedback about the rolls. it includes the output of the counter variable, and win, lose, or shoot again info.
Html5 can be viewed at
Here is some of the js. if you need it all i'll post it later - just let me know.
Fyi- if i take the call to fxInit() out of the body tag in the html5 the canvas does not persist, it blinks with every (roll) onClick Event
I have used ie9 js debugger and it steps through flawlessly every time 4-5 counts .
I wrote a simple code in javascript and it is working fine with IE and Firefox but the out put in php array count is correct in IE but not correct in Firefox
<script language="javascript"> var arrdimensions = { "codimesion":{"s":{'0':'dimesion1','1':'dimesion2','2':'dimesion3','3':'dimesion4','4':'dimesion5','5':'dimesion6','6':'dimesion7'},"c":1,"m":"50", "sc":1, "f":"nopcs[]"} }; function adddimensions(what) { [Code]...
I have a google map which shows a car moving along a line that it reads from xml.the problem is that if the user clicks the button again without reloading the page, the map moves but the car remains at its last point.From what I can figure out, this means that the startAnimation() function has restarted but the animate(d) function has not restarted. but trying to call the animate(d) function from the button, where the startAnimation() gets called,is there some way of resetting the animate(d) function when the startAnimation() function gets called, so everything goes back to the start? Or is there some other way of "refreshing" everything without reloading the page?
I'm trying to create a feature similar to facebooks "like" system.
I have a page with peoples posts in, and when someone clicks on "like", I want to first run the query to insert a new like into the database, then reload just the number of likes, without refreshing the entire page.
I know this way is harder but I want it to work without reloading everything. Here's what I have so far:
function for like (reverse engineered, might be completely wrong..)
function like(){ $('#postoptions').load('php_files/likecount.php'); } postoptions.php
[Code]....
I know that at the moment there is no query to add an entry to the database when clicking on the like link, but I'm not too sure how to put it. I tried putting this:
I'm trying to reload some dynamic content that is contained within div tags without refreshing the entire page. After some searching it appears that Ajax is my best bet, but I have never worked with JQuery before.
Here is the code snippet from the page containing the data I'm looking to refresh when a user click the "update" form button:
I have a form that I perform some AJAX business on when it is submitted. However, I wanted to have an if...else statement but when I add it it allows the page to refresh upon submit. For example.
I work mostly in PHP, with just a bit of JavaScript when necessary. I've inherited an app that among other things, uploads files to the server. When the user clicks the "Save" button, it targets an invisible iframe and actions the php upload script -- that is:
The outer, top level window has the icons for the files uploaded so far, and the total number.
The upload works fine, but the icons & total count don't get updated in the outer window unless I manually click refresh on the browser. Naturally, I'd like the new number and icon list to appear automatically after an upload, so I tried putting both:
window.location.reload(); and parent.location.reload();
at the end of the doupload.php script within the iframe (appropriately encapsulated in <script> </script>).
Both of which work, sort of, but they apparently repost the data to the iframe, which causes the upload to be re-executed, which then causes the reload to happen again, for an endless loop.
If I manually refresh the browser page from the firefox toolbar, this doesn't happen; it just refreshes and shows the new total number & appropriate icons.
So obviously I'm out of my depth here with the javascript and dom structure. I want to refresh the top window without reposting to the iframe.
how to do the following, here is a simplified example:
Let's say I have a database of pictures of animals. A search for "pets" is performed and it loads a page of thumbnail images. Somewhere on the page is a list of other search criteria (text link or checkbox) that would narrow the initial returned results. An example would be "cats", "dogs", "hamster", etc.
Is there a way after the initial search is performed that the results could be further filtered without having to hit a submit button and reload the page?
is there a way to send data to the server through a form , and then receive the response from the server without reloading a new page? kind of like the LoadVars object in flash?
I am embedding several youtube videos on a page, by default, youtube videos do not autoplay.
To get them to autoplay, one simply appends &autoplay=1 to the youtube url.
E.g. http://www.youtube.com/v/6YR0LGK_HHA&autoplay=1 (will autoplay)
As opposed to: http://www.youtube.com/v/6YR0LGK_HHA (will not autoplay)
Does anyone know of a cool trick for being able to do this when the client clicks on a JS link labelled Play Video (without refreshing the page)? Code:
Does anyone knows if it's possible to open a client socket with javascript ? I want to update information on a page without reloading it. And no, I don't want to you Java
I'm starting to learn Ajax after playing around with JSP and Javascript, I felt the need for interaction without reloading the page. I've searched everywhere for a simple java servlet/ajax example that I can play around with but just found a lot of asp and complex java examples. basic as typing a name in a text field and text being displayed beneath the text field after the word/letter has been typed. i.e. User must enter a name that is 3 or more letters else the text says "Error". I'm currently using Netbeans, so if the example could work there, that wold be preferable!
Is it possible to alter the query string of the current URL without triggering a page load.
eg. Say you have AJAX pagination, allowing people to change pages without the whole page reloading, just the content of the paginated area. However in case somebody bookmarked the page, they would really only be bookmarking the page 1 - even if they were on page 10.
So, what I was wondering is if it is possible when a user clicks Next, Previous, or Page 10, 15 etc, to alter (with javascript/jQuery) the URL (shown in the browser navigation bar) so that it reflects the page number they are on.
I am sure something like this is possible, either that or it is a damn fast connection. When I browse photos in somebody's photo album in Facebook, the photo loads with AJAX, yet the URL query string changes to reflect the current photo. And all this happens without any obvious full page reload. It appears that the URL/query string is being updated using Javascript while the photo changes using AJAX.
I am trying to do is load new content into a form without resetting the form. I have about 10 checkboxes, once 4 are selected I would like to reload a div in the page to insert four corresponding textareas with the same id as the checkboxes. So for example the checkboxes:
There would be about 10 after 4 are selected than four divs with textareas are loaded onto the page - These textareas have the same id in order for the right ones to load. If your wondering why not just hide the textareas and show when then have been selected by the checkboxes, its because they have a wysiwyg editor attach so it would start to load slow after I add say 10-20 different textareas.
Would this work: Code: $(document).ready(function() { $('#reload_1').click(function() { //var names = []; var myScripts = new Array(4) $('#page_select input:checked').each(function() { names.push(this).attr("id"); }); $('#content_div').load('external_content.php.html # . + '. myScripts[0]); $('#content_div').load('external_content.php.html # . + '. myScripts[1]); $('#content_div').load('external_content.php.html # . + '. myScripts[2]); $('#content_div').load('external_content.php.html # . + '. myScripts[3]); If I had all the divs and textareas in external_page.php and load only the ones needed.