javascript

Auto refresh parent window after closing popup

Hello All, I am having 2 pop up screens in my (Main) jsp. In the first pop-up the user will update the required information(Update) and after submitting the info, a new pop up will be shown that shows the modifications(View). I would like to refresh the (Main ) page when the user clicks on the close "X" in the view page. I tried to ...

mootools & nodejs

can i use mootools on the serverside with nodejs? If so, can someone give an example? ...

Changing the URL without reloading the page

Hi, I would like to know if its possible to change the contents of the URL in the browser without reloading the page. I use jQuery and Ajax to load new parts of my page. When I choose product one, the direct link would be "mysite.com/product1" and product two "mysite.com/product2", but I don't want to reload the site to these pages. Be...

Using unbind, I receive a Javascript TypeError: Object function has no method 'split'

I've written this code for a friend. The idea is he can add a "default" class to his textboxes, so that the default value will be grayed out, and then when he clicks it, it'll disappear, the text will return to its normal color, and then clicking a second time won't clear it: $(document).ready(function() { var textbox_click_handler...

How to create flashing page title effect like facebook?

How to create flashing title effect like facebook? Means, when you are chatting with someone and a new message is received, a title starts to switch between the original title and a message informing user of the arrival of new message giving a flashing effect. Explanation by AdrianoKF Notice the window title cycling between something ...

How does webkit/chrome's WebInspector Resources Inspection work?

I always want to know how the resource inspection work in webkit/safari/chrome's WebInspector work. The browser must provide a native BPI or something for javascript to display list of queries and their timelines, what is the binary API called? Can I use the same API to write a Chromium extension? ...

Serialization of Javascript from Server(NodeJS) to Browser

I would like to serialize an instance of JS object from the Server-side to the Client side (the object contains data members and functions) I have a Javascript stack on both end, all my users use Chrome and My server side is a NodeJS impl.. how would I do it? It should be trivial as my server is a Javascript one.. ...

ServerSide(PHP) vs. ClientSide(JS) running trade off

I have a collection of rows, I can generate Table(HTML) out of it using PHP (server side) or I can send the raw data to the client side and generate the Table there using JavaScript Which one is better and way? ...

Looking for an open source JS mapping API

Here are the requirements: must not rely on any type of known server, i.e. server code (that produces the map images) is not of a known variety supports panning and zooming (image is zoomed on the client) preferably with support for tiling (i.e. pre-fetching image tiles with some simple heuristics) JQuery friendly The API doesn't hav...

text selection in ipad html

I have a div with text inside of it. I want the text to be selectable (for copy/paste) on the iPad. At the same time I want to be able to handle an onclick event. This seems not to go well together. As soon the div is clickable it is not selectable. Does anybody know a way around this? <html> <head> <script> function run() { ...

java web services with axis

how can a java and axis web service for finding prices be established? ...

ajax call with html form won't work properly

I'm stuck. It's like the script doesn't have any function at all. <script> $("#continue").click(function () { $.ajax({ type: "POST", url: "dbc.php?check=First", data: {full_name : $('#full_name').val() usr_email : $('#usr_email').val()}, success: f...

I can't assign a class to an element opened in new window

hi every body I'm trying to open an image in a new window ,using javascript, by clicking on a button, then set a class to the image, using this code: OpenWindow=window.open("", "newwin","height=100,width=1000"); OpenWindow.document.write("<img id='img1' src='webfonts.jpg'>"); OpenWindow.document.getElementById("img1").class...

Session read write issue when I use curl between two apps

Hi, I have 2 web apps running on the same server. I tested the following on localhost so far, but I am really curious as to whether there was any fundamental issues with this implementation. Let us call these apps Shopping.com and Checkoutshopping.com. When a user on shopping.com clicks on a PayPal button, I will trigger a function; ...

How to work with google maps?

This is kind of a newebie question, I'm trying to add information to my markers, how do I add a balloon with information to this code map.addOverlay(new GMarker(new GLatLng(-34.8779420,-58.5514125))); On the other hand I have a second question, when I add the balloon for what I read I'm adding a second point but this point is clickabl...

How can I pass attribute value from iframe to parent in Javascript?

How can I pass attribute value from iframe to parent? I.e. iframe (frame1) has <a id="a1" href="http://www.infinitybusiness.net"&gt;. How can I get value of href in my parent page? ...

How do modern web-apps/sites do postbacks? javascript/ajax, <form> or X?

Hey all. I've tried to Google and research this, but without luck. I am curious to know how "modern" web-apps/sites do postbacks, meaning when they are sending back user-input to the site be processed. Do modern sites still use the old fashion <form>-tags or do they use some sort of javascript/ajax implementation? or is there even a t...

Is there a best practice for handling browser resizing?

I feel like GMail is an excellent example of best practices in action, but I'm looking for a more theoretical code-based approach. CSS? JavaScript? jQuery? Let's hear it. ...

Bad character in AJAX response?

I make an AJAX call and in response, I return some lines of text using ASP.NET. But sometimes the response does not show completely in IE7 (but OK in Firefox). I think there is a bad character in response. Is there a list of bad characters or any rule to create standard response? ...

jquery javascript switch if else form

http://jsfiddle.net/ujTDf/1/ link text Can anybody help please. The div/form doesn't switsch automaticly in other direction. thanks a lot!!!!!! ...