Are you serving this through a web server or from a local file? Chrome (and Chromium) has a security system in place that prohibits local files from running scripts. I think you might have been bitten by that one.
i am a 4th year student doing my final project on java i could request you to write me an abstract and a code for the following-
'A SPELL CHECKER THAT MAKES USE OF A HASH TABL
it should not in corparate with the dictonary.
thanks in advance!
Hey,guys,I make a useful app to debug webpage on iOS.It's free,always be free!And no ADs!But I don't know how to make people who works on mobile web app to know about it.In order to make it better I need to know what they want. Here is the app.
MIHTool helps Front-End Engineers to debug and optimizing their webpages on iPad and iPhone.
1.With HTML editor:view webpage source code with syntax highlighting and formatting;editing source code or creare a new webpage and preview the result.
2.Show WebKit Debug Borders(Compositing Render Layers).
3.Show Webkit Repaint Counter(Paint Rects).
4.More development tools(Firebug,YSlow,JS Console,WhatFont,PageSpeed,GTmetrix,W3C Markup Validation Service…).
5.User agent switcher.
7.Full screen mode(Shake Device To Toggle Full Screen Mode).
9.Clear History,clear cache,clear cookies, clear localstorage.
1.Show WebKit Debug Borders(Compositing Render Layers).
2.Show Webkit Repaint Counter(Paint Rects).
3.Full screen mode(Shake Device To Toggle Full Screen Mode).
I have scenario where a string can contain '$' only at the start, I was able to create a regular expression for this validation, but now another scenario is the same string can be repeated by a ',' delimiter. Now what happens is since I don't allow the '$' in the string except for the first position, when I repeat the same string after ',' starting with '$' the validation fails.
Is there anyway in which we can restrict a character uptil some delimiter and then again allow it?
Any pointers would be appreciated.
Thanks & Regards,
"Everyone is a genius at least once a year"
jQuery solution is pretty simples, but there is one weirdness, you cant read the value of the field until after it's been pasted, so I intoduce a short 1ms delay between paste, and trying to update the field:
var text = $('#first').val().split(' ');
var T = window.clipboardData.getData('Text');
document.getElementById('Txt_Data2').value = T;
document.getElementById("Txt_Data3").value = T;
var len = T.length;
var n = T.indexOf(" ");
document.getElementById("Txt_Data2").value = T.substring(0,n);
T = T.substring(n+1,len);
len = T.length;
n = T.indexOf(" ");
document.getElementById("Txt_Data3").value = T.substring(0,n);
document.getElementById("Txt_Data4").value = T.substring(n+1,len);
</Head><body><p> On Paste event in java script
They hide that sort of information in the documentation[^], the little buggers!
Use of the .live() method is no longer recommended since later versions of jQuery offer better methods that do not have its drawbacks. In particular, the following issues arise with the use of .live():
jQuery attempts to retrieve the elements specified by the selector before calling the .live() method, which may be time-consuming on large documents.
Chaining methods is not supported. For example, $("a").find(".offsite, .external").live( ... ); is not valid and does not work as expected.
Since all .live() events are attached at the document element, events take the longest and slowest possible path before they are handled.
On mobile iOS (iPhone, iPad and iPod Touch) the click event does not bubble to the document body for most elements and cannot be used with .live() without applying one of the following workarounds:
Use natively clickable elements such as a or button, as both of these do bubble to document.
Use .on() or .delegate() attached to an element below the level of document.body, since mobile iOS does bubble within the body.
Apply the CSS style cursor:pointer to the element that needs to bubble clicks (or a parent including document.documentElement). Note however, this will disable copy\paste on the element and cause it to be highlighted when touched.
Calling event.stopPropagation() in the event handler is ineffective in stopping event handlers attached lower in the document; the event has already propagated to document.
The .live() method interacts with other event methods in ways that can be surprising, e.g., $(document).unbind("click") removes all click handlers attached by any call to .live()!