javascript

GWT Widget does not allow long-touch-to-copy selections

We're developing a mobile application using GWT and are facing the following problem: iPhone offer a long touch function to do copy&paste for all kinds of stuff. But when we're using the HTML widget or another widget that has explicit ClickHandlers, those events are not forwarded. This even occurs, when there is no clickhandler defined....

Update client status to server on "onbeforeunload" event

I have a flash application that needs to send a http request to the server which will disconnect the existing session immediately. I have a tried a few options but none is reliable. Option #1: On "onbeforeunload" event send a http request from inside the flash applications. Fallacy: This does not work because as soon as the browser is ...

How can i call javascript function from backend within updatepanel

How can I call javascript function from backend within updatepanel in asp.net. ...

basic JS question: replacing text alert to image alert

I'd really use your help! Js is not really my thing.. I'm making validation form script in my page and browsing through examples scripts iI run into this: ['required', 'This is a required field.', function(v) { return !Validation.get('IsEmpty').test(v); }], I need to put image instead of 'This is a required field.' Is it the ri...

how to open popup window in Display tag column link

How to open popupwindow while clicking on Display tag column. I have popupSmallWindow(this, 'update') javascript to open the popup. i need to call this from display tag.while clicking this below column. paramName = "propertyTypeId" Value = propertyType.propertyTypeId action= editType.action And need to call popupSmallWindow(this, '...

get href of link with display:block property

Here's is what I'm trying to get <a href="default.aspx?propid=BARN" class="topbook"></a> The above link should clone the sidelink that has display:block <a href="default.aspx?propid=FARM" class="sidelink"></a> <a href="default.aspx?propid=HANW" class="sidelink"></a> <a href="default.aspx?propid=BARN" class="sidelink" style="display:b...

C# WebBrowser Controll with javaScript and html

I try to use the WebBrowserControll with C#. I use the following Code. The WebBrowser Controll open the Web Page and if there is a href= blank it is also oppend in an new WebBrowser Controll. But If I want to open an new JavaScript with window.open it doenst open an new WebBrowser Controll. What I have to do that a href= blank and a Java...

How do I make my AJAX content crawlable by Google?

Hi all. I've been working on a site that uses jQuery heavily and loads in content via AJAX like so: $('#newPageWrapper').load(newPath + ' .pageWrapper', function() { //on load logic } It has now come to my attention that Google won't index any dynamically loaded content via Javascript and so I've been looking for a solution to th...

File download: show checkbox to remember action if file is not a direct link

See screenshot. When creating a direct link to a file to be downloaded, IE offers a checkbox to remember the setting. When pushing a file to the client using a script, this checkbox never seems be shown. Is there a way to force its visibility? René ...

Session value in Javascript

How to read and write session values in javascript ...

How to pass js var in xslt

Hi All, I have a javascript variable something like: var str = "AA,BB,CC,AA,BB,DD"; var totlength = str.split(",").length; var xx = str.split(","); for (var i = 0; i < totlength; i++) { alert(xx[i]); } and I could print this value using above method.Now the problem is I have to craete on...

JavaScript: force the order in which function properties of a module can be called.

I wish to create an API that can be called in the following fashion: var f = foo().bar().barAgain().barTheThird(); but not: var f2 = foo().bar().barTheThird(); barAgain() can only be called after calling bar(), barTheThird() can only be called after calling barAgain() and so on. function foo() { var that = {}; var _bar = ...

Mootools: Delayed spinning icon while ajax request

I'm using mootools. There's a page with ajax tabs. On click, the new tab gets loaded using the mootools Request.HTML command. Because there will be some very timeconsuming SQL Queries in the background, I'm displaying a spinning icon until the page has loaded (see code). 122 $('detailContent').set('html', '<img src="common/img/a...

Switch information using jQuery

I am thinking of applying a new page to the admin section on my website and I wanted to make one page with three tabs ( picture should be included ) is this possible using jQuery. Thanks a lot. ...

how to pass a dynamic array in javascript?

I have dynamically loaded the values of checkbox using php, n m using AJAX in that page to call the processing page. <form name="form1" id="form1" action="javascript:wait1();getPass('go.php?**place**='+ document.form1.place.value);" method="post" enctype="multipart/form-data"> <input name="place[]" type="checkbox" value="<?=$ro['artic...

Loading an outbuffer to a string in javascript ?

How to load the output buffer into a string using javascript ? for example in php <?php ob_start(); ?> hello world ! <?php $string = ob_get_contents(); ?> ...

How to write an NPAPI plugin with functionality of WScript.Shell

I am very new to Web development, and have been writing some javascript that makes use of WScript.Shell via ActiveX. I am aware that browsers other than IE don't support ActiveX though. After doing some digging through Google, I have discovered that I may be able to do something similar on all web kit based browsers via NPAPI. I have n...

JavaScript logger into a rolling file

Hi, i've a JavaScript application. I'd like to use a logger but instead of logging to a console (like Firebug or Yahoo UI), I'd like to log to a file or several files. Ideally, It should be possible to back up the files when they reach a certain limit. thanks. ...

Can I use ASP.NET Server variables in assembly embedded javascript resource file

I was only wondering if it is possible at all to use server code within an assembly embedded javascript resource file. For example I downloaded an assembly resource sample project and I can see within the javascript resource file you can call server code. In this sample to get the url of another embedded resource (an image in this case)...

Any way for PHP/CodeIgniter to read the URL, when it's like site.com/#/xyz ...?

Hi Stackers, Basically I have a mostly Ajax-based site. When you load up a result, it appears via Ajax, and the URL address bar changes from mysite.com to mysite.com/#xyz/A_Random_Title. A_Random_Title is an SEO-friendly formatted title of the thing loaded up, but the important part is #xyz. xyz is the ID of the loaded result and is us...