The problem is this:
You have a textbox, you type in some text, send it to the server. On another page, that value is retrieved and displayed on screen in a textbox and a label.
It's important to stop scripting attacks, and asp.net won't let you submit unsafe code, so on submit you javascript replace < with < and the same for >
Whe...
My code is below, I am trying to delete records from mysql database but before deleting the browser has to prompt the user whether the deletion should continue. My problem is my logic is not working its deleting the record no matter what. Any help will be appreciated.
if (isset($_POST['outofqcellchat'])){
?>
<script type ="text/javas...
In my web app, I use Ctrl + Arrow keys to navigate from cell to cell in a table.
All cells contain a visible <span>, and a hidden <input> element -- their values are kept in sync.
When a cell is activated, the <span> is hidden, while the input is shown.
Everything works just fine in Firefox, IE, Opera, etc. Yet, when I load up Chrome,...
I have a website with around half a million geocoded locations in a database. I want people to be able to search for these via a map. Obviously, that's far too many for a standard Google (or, for that matter, Bing) map display, even when using something like MarkerClusterer.
What I want to do, therefore, is dynamically load the map data...
Hi,
I am trying to upload a text file with more than one record but I keep getting a syntax() error.
The implemented logic works fine if there is only one record in the file.
Could the problem be that I am echoing multiple records in my foreach loop?
Description:
Ext JS interface where the user browses for a file. Once file is selecte...
I have an image in a tag
var img = new Image();
ctx.drawImage(img,0,0,img.width,img.height);
ecc...
How is possible to change the Brightness and Contrast of this image with javascript?
Tnx
...
I use this javascript code to get the currently highlighted selection.
var selection = window.getSelection()
If the highlight is a section of text all within a <div>, how can I get the offset from the beginning of the <div> and the length of the highlight? (the length is not just the length of the text, it should be the actual length ...
I have a simple drop down list and like to add shadow, it seem hard to find a working code, what do you suggest?
<select>
<option>apple</option>
</select>
...
I have such table in HTML:
<table>
<tr>
<td>Cell 1</td>
</tr>
<tr>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
</tr>
<table>
How to change cell's background on mouse move in this cell? If cursor moves away from the cell, background must stay, but if the cursor move to the other cell, it must reset background.
...
Have defined a browserfunction in my java code and am trying to call that from javascript.
On executing this javascript I get an error objectExpected().
Anyone knows what could be causing this ?
Here is the JS:
var result = myCustomFn("test", "abd", "url");
Here is code from java side:
final Browser browser = new Browser(shell, SWT....
I’ve got a Greasemonkey-for-IE script in IE9 that’s importing jQuery. But on secure pages it doesn’t work.
I’m getting:
SEC7111: HTTPS security is compromised by http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
The code that fails is:
var script = document.createElement("script");
script.setAttribute("src",
"http...
Is there any way to extend Flash CS3/CS5 using .Net dll?
There is an extensibility point available in Flash, which works with C. Is there any way to extend using .Net or C++?
...
There was no problem some months ago but suddenly "Paste" stop working in CodeMirror in Google Chrome. Both "Ctrl+V", "Shift+Insert" and right-click -> "Paste" do nothing.
It's not a bug in my code because even at demo page at
http://codemirror.net/jstest.html
it doesn't work.
...
I have an image encoded in base64 in a javascript variable : data:image/png;base64, base64 data
[EDIT]
I need to save that file to disk without asking to the visitor to do a right click
[/EDIT]
Is it possible ? How ?
Thanks in advance
Best regards
...
see here: link text on the demonstration?
How is this done? With and iframe?
EDIT:
The pop up on the side specically.
...
Hi dear stackers,
I'm a bit stuck, given my page includes an external Javascript which uses document.write. The problem is my page is UTF-8 encoded, and the contents written are encoded in latin-1, which causes some display problems.
Is there any way to handle this ?
--
Thanks in advance,
Rolf
...
what does this jquery selector means $("*[regex]")
I want to select all controls which have an attribute regex.
...
I would like to write a javascript plug in which can string manipulations something like substring, replace, trim and customized user functions.
Where from should i start to write (if there is no this kind of plug-in) ?
like:
$("my string will be this").substr("will","would",{first});
or
$("my string will be this").replace("will","w...
For example:
<input id="#me" type="button" callme="doAction()"/>
<script>
var result = callFunction( $("#me").attr('callme') ); /// ?????????
</script>
...
Good day, I've been working on this project and learning how to place a video on the ipad, and all the other browsers.
But after writing the code for this, I noticed that the only thing I get from the iPad is the first keyframe of the video, but the video is not playing. When I press the "Play" button that appears in that screen of the...