javascript

Output the rendered contents of a page on a JavaScript error

I'm having problems with getting decent JavaScript error invormation in a Production environment. When I'm developing I can just attach a debugger and (usually) fix the problem. When I get the same error in a production environment however at best I see is an error report that looks like this: Error: Object doesn't support this pro...

Is there a JavaScript user tracking framework / best practice site?

I am upgrading the tracking of our company click monitoring tool. Currently it uses a <img/> tag to call a page and pass the required information to our system. We need to upgrade this to use <script/> tags and call a JavaScript file hosted on our server, Like Google Analytics Urchin Module Is there a JavaScript framework / best pract...

dynamically add remove rows in table using jquery

I have construted my table as follows: <table id="dataTable"> <thead> <tr><th>Name</th> <th>Value</th></tr> </thead> <TR><TD>Scooby Doo</TD><TD>6</TD><TD><INPUT TYPE="Button" onClick="AddRow()" VALUE="Add Row"></TD></TR> </table> When the button Add Row is clicked, I need to ...

How to check whether a certain asp.net text box exists in a page

Suppose I have a master page where I have written some javascript to access the value of a particular asp.net text box, which resides in one of its content pages, but not in all the pages. This piece of javascript code can't be moved to that particular content page because of some restrictions. Now I need a way to determine whether or n...

define a region in google maps jquery plug in

hello my friends, i put this plug in into my website, how i do define a region and restrict visitors to can not going out of ? I don't have access http://code.google.com for political reasons. please help me in your answer and don't Refers to that! thank advance ...

Standalone php jabber client in browser without javascript

Hi all, Is there any way to maintain stream from php to the jabber server without javascript to keep the client side live? Some low end mobile do not support javascript, so to maintain permanent connection to server is key question? any hacks? ...

Need help with regular expression

I need a regular expression in javascript which does the following. Those instances of a which are not the part of an HTML entity, should be replaced with w. Ex: abc should change to wbc aabacaa should change to wwbwcww &amp;abcaa&amp; should change to &amp;wbcww&amp; and so on. I am using JavaScript. Any help is appr...

Jquery yesconflict

Hello, I have a website based on a joomla template. I want to add the dock from ndesign-studio.com/blog/mac/css-dock-menu I've built a sample page for this. Here is the code : <script type="text/javascript" src="images/eklenecek/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="images/eklenecek/interface.js"></scrip...

Does jquery makes the browser slow?

I'm using jQuery in my web page. Will this make the web page to load contents slow? Using jQuery is advantage than JavaScript or not why?... ...

Action indicator during JQuery each() function

How to do simple action indicator during execution of JQuery each(), is this possible? I have some problems with my JQuery code, i don't understand the behavior of it :/ I am new to JQuery. js code look like this: $(function () { $('#offer_discount').keyup(function () { //here i try to show my hidden div with action in...

Select-copy from a web page adds the page hyperlink to the clipboard

If you select a paragraph from eg http://www.wired.com/gadgetlab/2010/01/ipad-flash/ and paste it in word, you will notice that the link to that page has been added at the end of the paragraph. Here is an example: Some of Apple’s promotional material about the iPad implies the device’s Safari browser can load Adobe Flash cont...

document.getElementById(somevar) not working.

hi, i have the code below but getElementById(setID) not working for me, i know it catches the id because alert(setID) working. any idea? function getdata(file, aID){ req = xmlHttpRequestHandler.createXmlHttpRequest(); req.onreadystatechange = Response; req.open("GET", file, true); req.send(null); setID = aID; } function Response() { ...

Why can't I get Javascript to Talk to ActionScript

I have a very simple flash program that plays music. It consists of a play pause button and a timer that shows the current position of the song. I'm trying to make it possible to pause or play the song using a regular form button. <div class="musicplayer_playpause"> <script type="text/javascript"> AC_FL_RunConten...

Dynamically adding TinyMCE-editor to textarea kills other instances

Hi, I have an html page with one or more textareas, each of which has a TinyMCE-editor (added to them by using tinyMCE.init({mode : "textareas", etc...});. At first they all work as they should, no problems. On the page is also a button that adds a new textarea to the page (using AJAX). In the handler of the AJAX call I append the respo...

ASP.NET MVC jQuery script added in View not working

Hello, In my view, I generate the HTML, and add some jQuery/Javascript code. The view is displayed in a div of my main page. The jQuery code I added is there but not working. When I place the same code directly hard-coded in the view that's work. In my view, it's as partial view (.ascx) I have something like this : <%= Model.GetMyScri...

Deploying ASP.NET MVC App to Multiple Virtual Directories (Issues with URL references & JS files)

Hi Guys I'm not sure if I have my question named correctly but here's the issue: I have an MVC.NET app that is deployed at multiple virtual directories. The reason for this is because we have different versions under various stages of QA. The problem with this is that in one site the .js references are for /VirtualDir/scripts/fi...

Visual studio interpret breakpoints in JavaScript files.

What I am trying to do is insert debugger statements in place of breakpoints (Those little red dots on the left of a file) in a JS file that that is part of a VS Solution. Then when a build is run the debug symbols are converted to the javascript 'debugger' which will cause the execution to break. Let me know if more info is required. ...

What are pros and cons of letting Google host jQuery for me ?

Possible Duplicate: Should I link to Google APIs cloud for JS libraries? Do you serve jQuery to your users from Google on a public websites ? ...

Is it possible to send a user back a page after login?

I am a lazy programmer, i dont want to write dozens or hundreds of lines if i dont need to. Some actions such as posting a comment require login. It may timeout and the user may be redirected to a login page. With get data i can easily put the query in something like action=PrevPageUrlAndQuery. However with POST data i have to do someth...

Best Practices & Considerations when writing HTML Emails

I've been developing websites for over a decade now, but quickly found that many of my habits in developing for the web are useless when developing for email clients. This has caused me an enormous amount of frustration, so I thought I would ask a question that would hopefully surface the best practices and necessary considerations for o...