What do the attributes do in <script for=foo event=onmouseover>
I read some HTML like: <script for=foo event=onmouseover> ... </script> Just wondering what the attributes for=foo event=onmouseover mean? ...
I read some HTML like: <script for=foo event=onmouseover> ... </script> Just wondering what the attributes for=foo event=onmouseover mean? ...
I have some working Javascript that manipulates the some DOM elements. The problem is, I don't understand why it works, which is never a good thing. I am trying to learn more about object oriented javascript and javascript best practices, so the organization may seems a little strange. Basically, I wrap two methods that manipulate the ...
The problem I want to delete a file with AJAX/PHP. But the php says that the file name what I send with AJAX is not a file, but when I go directly to the link I can delete the files. Check out my current PHP, i've put in the IF/ELSE statement to check if the string is a file with: is_file, the result is false. Without is_file says t...
Hi, I had a quick question regarding RegEx... I have a string that looks something like the following: "This was written by <p id="auth">John Doe</p> today!" What I want to do (with javascript) is basically extract out the 'John Doe' from any tag with the ID of "auth". Could anyone shed some light? I'm sorry to ask. Full story: I ...
Hello, I have a website that uses ajax jquery and facebox. ( http://tinyurl.com/23eh4xc ) Inside the div "#content" there are some links to other pages that open fine using facebox. If I reload the content of that div using ajax jquery , then the links wont popup using facebox effect anymore. I tried to create a function that I would ...
I did some research months ago looking for a nice javascript template engine and settled on one made by Trimpath. I like this a lot, but I have a few wish list items: The code is rather big. I'd love something tiny, like John Resig's template engine, but easier to use. I'd like support for includes, and django-style inheritance. Are...
<script type="text/javascript"> function recieveTextFromFlash(Txt){ document.getElementById('htmlText').value = Txt; } Shadowbox.init({ handleOversize: "resize", overlayOpacity: 0.6, skipSetup: true }); function openShadowbox(content, type){ Shadowbox.open({ ...
I was about to write a script to dump out everything in navigator (excluding window) to help with debugging user issues (instead of asking the user what browser/operating system they're running, I'd like to point them to a page that dumps out everything interesting), and it occurred to me this has probably been done a million times befor...
I would like to add (with as minimal change to a page as possible) the ability to display a pop-over (i.e. not an actual OS dialog, but part of the page) message box on my homepage that I can call with javascript. In the worst case I suppose I could resort to the alert() call, but I find these annoying and obtrusive and just want someth...
given: var regexp = new RegExp("<~~include(.*?)~~>", "g"); What's the easist way in javascript to assign a variable to whatever's matched by .*? I can do this, but it's a little ugly: myString.match(regexp).replace("<~~include", "").replace("~~>", ""); ...
I have a JavaScript file that embeds a widget on a website. I want to be able to call this widget using a URL of the form: http://domain.com/widget.js?variable=test Within the JS script I want to be able to read in the value of the URL parameter 'variable' which is this case is 'test' and use it in the HTML code the JS outputs. I trie...
I haven't been able to find a clearly defined solution for this. Most are incomplete snippets. Here is a simple sample. See the doSomething() comment: <head> <style type="text/css"> body, html { font-family:helvetica,arial,sans-serif; font-size:90%; } </style> <link rel="stylesheet" type="text/css" href="http://a...
I'm looking for a websocket/node.js chat implementation which supports multiple rooms. I'm also going to write an app which needs multiple rooms or servers, and I'm just looking for some code samples of how people do it. Thanks. I know there's a service http://pusherapp.com which provides this service, but I'm looking for an open sour...
When a textarea has more text in it than can be shown it will display scroll bars. How can I make it so that the textarea will expand itself when it has more text than it can display. My goal is never to have scroll bars appear. A jQuery solution is preferred. ...
How to fix crossscripting issue calling FB.init using Facebook Connect (old JS SDK)? More specific: if xd_receiver.htm is not specified: after calling calling FB.Connect.requireSession(facebook_login_callback) the Facebook login pops up correctly but browser console throws "Unsafe JavaScript attempt to access frame with URL...Domains,...
This is my javascript function. Its nested in a document.ready fuction() $(".bim").change(function() { var str = ""; $("input:checked").each(function() { str += $(this).next().text() + "_"; }); str = str.substr(0, str.length - 1); alert(str); }); It works fine in Firefox and Chrome. It DOES NOT work with I...
Hi all, I'm trying to put the logic together for this and it seems like I cant get no where. I have my repeat all set depending on week(s). But what about duration? Let's say someone is schedule for 2 days (duration) for every week (repeat). How would I put this together depending on two given dates? http://jsbin.com/usori3/15/edit ...
Hello, I have a website that uses ajax jquery and colorbox. Inside the div "#content" there are some links to other pages that open fine using colorbox. If I reload the content of that div using ajax jquery , then the links wont popup using colorbox effect anymore. I tried to create a function that I would call whenever I call the fun...
I use jQuery. I have been reading a lot about selector performance and optimizing our AJAX app. I am looking to improve my selector performance. I know all the jquery performance tips. I haven't found an exact answer to a question I have. I am using almost every current jquery performance tip and yet my app still seems to lag quite a bi...
<td colspan ="2" style="width: 64px"><div style="float:left; padding-left:9px;"> <asp:LinkButton ID="lnkremoveloc" runat="server" OnClick="lnkremoveloc_Click" CssClass="linkclass" style="cursor:pointer" Font-Underline="True" Font-Bold="true" Font-Size="12px">Remove Location</asp:LinkButton></div></td> ...