Hi,
I just want to redirect the user to google search when he type some thing in text box and then submit, for that i coded:
<script type="text/javascript">
function gotosearch(){
var search = document.getElementById('q').value;
window.location = "http://www.google.com.pk/#hl=en&source=hp&biw=1024&bih=604&q="+search+"&am...
Hi all,
I am working on embedding Google maps on HTML...
I want a javascript code that works same as creating one we do in Mymaps of Google maps. I want to add the function markers, polyline and polylines on a road..
I tried hard to do the same but did get exactly the look and the polylines doesnot work
I will be very thankful if I ge...
Hello all,
I'm doing a drag and drop module now, and I need to get the position of the element on screen (don't really care if it is page, screen or offset or any thing else), but it has to be from the right as my project is in a RTL language....everything is RTL, so the data has to be saved like that to the DB because resolution and re...
Where can I find code demonstrating the "remember me" feature of logins?
I tried here, one can click html or javascript, and see each.. and put it in an html page
http://www.javascriptbank.com/remember-me.html
which I did
http://pastebin.com/KkjCeGJM
but the "remember me" function seems to have nothing behind it.
I don't know much ja...
Hi Folks,
I am trying to run a sample javascript code from the link: Link
Nothing happens on FF and on IE, after scanning, it just clears out the text field. What is the issue here?
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Docu...
I have a sign up page on my site. After entering your info, the site sends out an email to verify the user. From that email link:
I wonder how I can target the previously opened window to my site?
(Which would currently say: Thank You for signing up, please check your email for a validation token)
Placed in the body tag of the site is:...
I have used Spotify for some time now and I thought it was a 100% native desktop app til I saw a HTTP request error inside the application.
So that makes me wondering if Spotify is developed with javascript using frameworks like Titanium.
Anyone knows?
...
I've never done this before and am not sure why it's outputting the infamous � encoding character. Any ideas on how to output characters as they should (ASCII+Unicode)? I think \u0041-\u005A should print A-Z in UTF-8, which Firefox is reporting is the page encoding.
var c = new Array("F","E","D","C","B","A",9,8,7,6,5,4,3,2,1,0);
...
I'm having a hard time thinking how to word this one, so if it makes no sense, let me know.
I have a table that looks something like this
Name | Email | Phone
John Doe | [email protected] | 555-5555
Jane Doe | [email protected] | 555-5555
Now lets say that every listed name is a link. When you click that link, an area appears ...
Hello
I can darken the water at the same time changing to a styled map so other values get reset. What I want is a map with green landscape like MapTypeId.TERRAIN has and darker water. I could manage make the water darker and now also want green landscape same way MapTypeId.TERRAIN has. Can you recommend a way? Thanks
...
I'm using the technique outlined here to do a partial page refresh periodically. What I was wondering is if it is possible to do a partial page refresh but not refresh some elements within the div that is being refreshed? I have some checkboxes that lose the checked state each time the page refreshes. I would like to not refresh these ...
We have had some problems with the way our site is displayed only under certain conditions specifically when viewed with Internet Explorer. The site was created with Joomla and is template based. I believe the problem occurs because of a conflict between a script for the menu's on the template, and some other script I am not sure of.
...
Page x creates a pop-up window (page y). When page y is closed, I need an event to trigger on page x.
Any help is appreciated. Thanks.
...
I'm working on a countdown timer for my website, but can't get the script to work. The creator of the script, PHP F1, hasn't been able to help with it.
Question is: Why is the year in the target date ($targetDate) variable not making it through to the HTML/JavaScript implement?
I'm using the mktime() function. No matter whether I put t...
Hello I am completely confused between json and ajax. When would what be used. I work with PHP on the server side. I regularly use ajax to receive data asynchronously, without invoking a page load. I use php's json functions to pass data to javascript. But I just started learning jQuery, and I am completely confused when to use function ...
My HTML form is clearing automatically after I click the submit button. Any idea how to stop this from happening?
Here's the opening tag for the form:
<form onsubmit="return math()">
...
Basically what I am wanting to do is take the variable named FROM and swap it with the variable named TO and vice visa, the reason for this is to allow the user to press a button which swaps the variables over when pressed. Exactly how it does when you press the swap button on google translate. Below is the code for the variables ect, b...
My blog posts live in a container that's 600px wide. When I have an image that's wider than 600px, I resize it via CSS (.post img {max-width: 600px})
I'd like users to be able to click on these resized images and see the full size version in a lightbox, but to do this I need to detect in Javascript which images have been thus resized (s...
Hi,
I'm using this Fx.Slide script in my site:
var togglers = $$('.toggler'), expanders = $$('.expandable');
togglers.each(function(toggler, index){
var fx = new Fx.Slide(expanders[index]).hide();
toggler.addEvents({
click: function(e){
e = new Event(e);
...
Suppose user requests an action, the page is equipped with ajax so the request has been made through javascript and the status of task are updating every 10 seconds.
The problem is if the user close the page at this time the task would be lost?
I want the php request, continue and complete even if the user closed the page.
How can I do...