I get the following JScript Debugger error when I click on the Start Debugging button in the Script tab of the Developer Tools (F12) window:
Unable to attach to the process. Another debugger might be attached to the process.
Closing all browser windows and launching ie again has no effect.Ending the process tree in Windows Task Man...
First, 2 common (basic) approaches:
# returning from some FoosController method
respond_to do |format|
# 1. render the javascript directly
format.js { render :json => @foo.to_json }
# 2. render the default template, say update.js.erb
format.js { render }
end
# in update.js.erb
$('#foo').html("<%= escape_javascript(render(@foo)...
Hi All,
I used a tabindex in my code, everything is going great its works finr in Firefox, ie8, safari but its not working properly in ie7, when i used a tab index in ie7 it come up to two input file then it get back to index one;
example:
<div tabindex=1>
<a onclick="slide_down()" style="cursor:pointer;width:160px; padding-botto...
Hi, I have this problem that I probably understand but don't know how to handle, if there is a way.
I have a class simplified as this:
function DrawingTable(canvas_id){
this.canvas_id = canvas_id;
bind_events()
function bind_events(){
$(get_canvas()).click(function(e){
var canvas = get_canvas() //works
do_something_in_...
I have a need to print out multiple PDFs with the help of javascript. Is this even possible without rendering each PDF in a separate window and calling window.print()?
Basically, I would like to be able to do something like print('my_pdf_url').
Edit
After some searching, I have come to the conclusion that there are no other methods tha...
I'm new to Java and I'm doing a project with Ext JS and Java. I'm using Eclipse Java EE IDE for Web Developers (Build id: 20100218-1602). Can anyone suggest any Javascript debugging plugin for this build? Links appreciated
...
I'm using css to only print a section of a page:
body {
visibility:hidden;
}
.print {
visibility:visible;
background-color: white;
margin: 0;
}
The section above the element I want to print gets properly hidden in the print output, however it still takes up the area of space. I tested this by making a ...
Is there a way to use javascript to determine how long someone was looking at my webpage before they closed their browser or hit the back button? Something like send a message to php page every few seconds or so in the background?
...
I am currently writing a custom dialog box script in JavaScript (to show dialog boxes with a choice of buttons, titles, etc.) thus mimicking C#'s MessageBox.Show() method. However, I'm having problems with correctly returning values from the function.
For example, the Show() method I have created is static, and called as follows from a ...
Is there any way to force an <a href> to do a delete request when clicked instead of a regular GET?
The "Rails" way is to dynamically generate a <form> tag that adds the appropriate params so that it gets routed to the right place, however I'm not too fond of that much DOM manipulation for such a simple task.
I thought about going the ...
Hi, We are trying parse the date with timestamp string, it blows up in IE but works fine FireFox.
Here are the code
alert(new Date(Date.parse("2010-01-31T12:00:00.233467-05:00")));
Any idea to make it work in IE browser? Thanks in advance.
...
I am using jquery to determine the width of the control:-
$("#div1").width();
There is a difference in width of the div between IE8 (in compatibility view) and Firefox. Width is not same.
e.g
ie : 1887
FF : 1898
How to tackle it?
...
Hi,
I have a flash application which would be on Facebook . I was wondering currently I have two options in front of me either make javascript calls which will make AJAX calls and return the data to flash or make direct AMFPHP calls and get data into flash.
Which would be more faster? more importantly a better approach?
...
I pulled up the NWmatcher source code for some light morning reading and noticed this odd bit of code I'd never seen in javascript before:
main:for(/*irrelevant loop stuff*/){/*...*/}
This snippet can be found in the compileGroup method on line 441 (nwmatcher-1.1.1)
return new Function('c,s,d,h',
'var k,e,r,n,C,N,T,X=0,x=0;main:f...
I have text input item and using select() I can highlight the text inside it, however sometimes the text is already selected for a valid reasons and when I run select(), it deselects it I think, is it possible to check if the input item is selected ?
...
Hello
please help me
<html>
<body>
http://domainname.com/abc/xyz.zip
http://domainname2.com/abc/xyz.zip
</body>
</html>
I want replace with link and out put like
<html>
<body>
<a href="http://domainname.com/abc/xyz.zip">http://domainname.com/abc/xyz.zip</a>
<a href="http://domainname2.com/...
How can I use javascript to send a one way message to php? I would like to get the browser information from javascript and just send it to php in the background. I know I can get some of this from php, but I'd rather use javascript. Is there a way to do this without a framework like jquery?
...
Possible Duplicates:
Ajax Highscores security
Is Flash/Actionscript any safer than Javascript for persistent online game?
I have a google appengine high score board for a chrome extension game written in javascript. I'm currently submitting high scores with an xmlhttprequest, so anyone can write a little bit of javascript an...
I'm trying to find something like this: http://coffeescripter.com/code/ad-gallery/ that is controlled by an xml file that can simply contain the image location, thumbnail location and the text for title/description. Has to be pure jquery or javascript though - no flash based stuff.
I've found loads of great components but can't find one...
Is there a way to determine if a given drop down is currently active and displaying it's list of options?
I am currently binding to the mousedown event of the dropdown and populating the options when the user clicks on it. Unfortunately the mousedown event fires when the user selects the option as well.
If I can determine if the drop d...