javascript

execute a method on an existing object with window.setInterval

Hi, Is it possible to run the method on an existing object on timeout of window.setInterval method. I can emulate the same by having some global variable and calling the method of this global variable in setInterval, but i wanted to know if this is possible using the method directly. Best Regards, Keshav ...

Disabling javascript in specific block/div (containing suspect HTML) ?

Is it, in any way, possible to disable the browsers execution of script inside a block/section/element ? My scenario is, that I'm letting my (future) users create "rich content" (using CK-editor). Content that wil later be shown to other users - with all the dangers that imply: xss, redirection, identity theft, spam and what not... I'v...

how i can get the contentWindow.location of the iframe where the iframe src contain different domain name?

how i can get the contentWindow.location of the iframe where the iframe src contain different domain name? i have googling about this , but i found some thing like proxt, so how i can get the location of the window inside iframe where iframe src is not on the same domain? ...

Looking for a Toolbox (Crop/Position/Rotate) for a Website

I'm looking for a Toolbox for a Website that can do the following things: Write Text in a Text Editor (change its color/font size/font) and display it over an product image (plus drag&drop, do rotation). As Texteditor i could use TinyMCE but how to rotate/drag&drop? the same with images (upload a logo, display it over an existing produ...

Jquery click function effect

I have a jquery code, but I'm a little bit confused on how can I put a css on this: $(document).ready(function () { $('span.account-menu').click(function () { $('ul.menu').slideToggle('medium'); }); }); I wanted to add this css in the click function. border: 1px solid #999999; background-color: #333333; This style, I ...

how to exchange variables between extern iframe and site

hey guys, for developement reasons (working with facebook-connect) i put the connect iframe in an iframe. on that way i am able to work on the connect-thing independent of my ip and don't have to develop on the live-server. the iframe holding the connect-button iframe is on my server, accessing the same db-server as the developer versi...

how to find out the value of textbox from asp.net to script

from my textbox, i need to get the first digit entered into that, and check whther it is 7 or 8 or 9.. using getelementbyid, how can i get this.... how can check whether first digit is 7 or 8 or 9 in the textbox ...

Can I send requests to pages in other websites using POST ?

I've got two servers running jsp and php. I'd like the PHP page to call the JSP page for getting an output. I tried using simple Ajax and Jquery-Ajax, it doesn't seem to work. Why? ...

iframe click link it opens in parent page rather than in iframe page.

User clicks on URL hyperlink (http://example.com) within a iframe dialog window, dialog window closes and link is open in parent page. how do you open the clicked link in the parent page instead of inside the iframe page? ...

How do I use javascript to render blue gradient color

hi, I need to display text on a blue gradient color background within a table. How could I render this using Javascript? Thanks a lot! ...

How to move to previously tab ?

Hi, what i want is if we press down it will go to next link but for previous link what is keycode or code using javascript. please help. Thanks. ...

javascript eval backslash in window NT path problem

I am experiencing a classic JS case (in my opinion) but after a lot of googling, still not able to find a solution. Backslash is considered as a escape character in JS but what you do when you need to pass windows path from the JS and print it? I am using eval because my java applet is executing the code and placing bits when it has a s...

Getting all the style properties using JQuery. Basically I want an equivalent of getComputedStyle() and I dont want to handle cross-browser stuff.

Hi everyone, I would like to get the currentStyle/computedStyle object and I dont want to manually check for the type of browser. (I wanted to get rid of cross-browser handling that is why I came to Jquery). Actually I want the style object returning all the style-property: value map. Please help. ...

PopUp Blocker code detection not working.

I have turned on PopUp blocker in FF and Chrome. I have a piece of code to check PopUp is working as: function checkPopUp() { var myTest = window.open("about:blank","","directories=no,height=1,width=1,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,top=0,location=no"); var popUpsBlocked = ''; if (!myTest) { popUp...

What things should I be aware of before moving to extJs as an asp.Net developer?

Hi, In the development environment where I code, there is a recent discussion on using extJs JavaScript framework in one of our upcoming project. My question is: As an asp.NET developer who is more or less familiar with JavaScript and jQuery, what critical points should I be aware of to not to be surprised or upset in the middle of my...

Changing background images like this

If you guys check out this webpage: http://www2.scandvision.se/oresund10/ How have they done this background fade in fade out? When i check the source this <img id="wrapper-background" src="images/body-background-0.jpg" alt="Background" /> and i think theres some kind of script maybe php or js, or both, that every 5 sec changes ...

Eclipse Javascript code assist problem in using WTP

Hi, I'm new to WTP so excuse me if the solution to this is obvious. When i define and use a class from within the same file i get nice code assist help, i also get code assist for classes from the standard libraries. Unortunatly, when i try to use code and declarations from one file in another file i no longer get t he nice code assist f...

Putting Javascript source, then immediately the page not working

Hi there, When I put the following code on my page. <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js" /> Then anything below will became nothing, can anyone tell me why? Thanks alot. Sorry, I am very new in web development. Thanks ...

How do I put my return data from an asmx into JSON?

I want to return an array of javascript objects from my asp.net asmx file. ie. variable = [ { *value1*: 'value1', *value2*: 'value2', ..., }, { . . } ]; I seem have been having trouble reaching this. I'd put this into code but I've been hacking away at it so much it'd probably do more ha...

How to set up flag in wizard form to allow submit/override other function

Hi I have a long form that is split into a wizard. To prevent the user from hitting browser back button and losing data I have the following: window.onbeforeunload = function() { return "Hitting back will cause you to lose all form data."; }; How would I insert a flag and apply to the last step so the form can be submitted properly...