difference between css/javascript selectors
What is the difference between div#name and #name? Or is there a difference if you use class or id to position a certain element? Thank you ...
What is the difference between div#name and #name? Or is there a difference if you use class or id to position a certain element? Thank you ...
I am having a JSP file with the below codes <HTML> <head> <link rel="stylesheet" type="text/css" href="../CSS/home.css" /> <link rel="stylesheet" type="text/css" href="../CSS/left.css" /> <script type="text/javascript" src="../js/friend_request.js"></script> </head> <body> <div class="menu"> <form name="search_form" method="p...
Hi experts,,, the two ways that I know to get the page url are: 1.through the applet class: Applet.getDocumentBase() 2.through the netscape javascript library: JSObject.getWindow(this).eval("location.href") First, what are the differences between those two methods and advantages of each, Secondly, can users trick the url of those met...
I'd like to write some simple javascript as a music page-turner. I've got it working fine with mouse events, but my wife isn't deft enough to click a mouse with her foot while she's playing piano. Keyboards, being bigger and less inclined to move around, seem like a better solution, but I can't get the keyboard events to catch after th...
Hello, I want to embed a VLC player in my webapp build with Google's GWT. First I had a look at this page: http://wiki.videolan.org/GWT, which offers a nice solution but I add to implements all javascript functions calls (play, stop, fullscreen) with JSNI. Then I found gwt-player (hosted by Google code) which does all the job for me b...
Hi, i'm trying to get an input box to get auto-selected when the user clicks on it the code i'm using : <input type="text" onclick="this.focus();this.select();" value="i like pie"> tried with the solution provided here the problem is that the code works for FF, Opera, Internet Explorer 8/7 but not for IE 6... any ideas how to make i...
I've written a twitter client for Win7 desktop gadgets (html + JavaScript). I'm trying to convert over to OAuth but can't even "get off the ground" so to speak. I'm using the twitter suggested JavaScript lib. Here's the request I'm sending and the 401 response. Can anyone spot the issue. I'm stumped. GET /oauth/request_token HTTP/1.1 x...
Hello everybody, I've browsed to all question related to "sticky footer" and nothing helped me because my #content div is doesnt not always have sufficient content to push footer to the bottom, here is the code I've used to achiveve this but apparently I did something wrong: CSS: /* FOOTER FIX */ html, body, div#container { he...
I am trying to hit a third party URL to get the XML response and to show the reposne into my webpage. I get a proper response with status as 200 and readystate as 4 in IE and Safari browsers. But In FF3.5 and Crome i get XMLHTTPRequest status as 0 and reponseText comes as a blank string. I tried many options writing the normal XMLHTTPReq...
I have a small form of transition settings next to some images I'm rotating using a jquery innerfade plugin. What I would like is when the user selects a new transition setting (ie, timeout) the innerfade dynamically updates the timeout setting so the user can preview what this change will look like. But I'm not sure the best way to do ...
I have a login page where user enters Username(textbox), Password(textbox), and location(dropdownlist) then login. On the server page, for the location dropdonwlist I have a connection string to access SQL server database to get all locations from location table and bound the data to the dropdownlist. For the dropdownlist.SelectedIte...
Take a look at http://www.chromeexperiments.com/ I think JavaScript is very close to have everything that RIAs can offer. What's missing from or for JavaScript to make it a viable RIA development alternative? ...
I'm looking for a way to set a selection in a textarea in Internet Explorer. In other browsers, this works just fine: textarea.selectionStart = start; textarea.selectionEnd = end; In IE, I assume I have to use createRange and adjust the selection somehow, but I cannot figure out how. Extra bonus points for a link to a proper document...
Given a string like: "The dog has a long tail, and it is RED!" What kind of JQUERY, JavaScript magic can be used to keep spaces to only 1 max? Goal: "The dog has a long tail, and it is RED!" thanks ...
Hello, It's probably something really simple, but I'm just learning. There's a page with 3 blockquote tags on it, and I'd need to get the innerHTML of the one containing a certain string. I don't know how to search/match a string and get the innerHTML of the tag containing the matched result. Any help would be appreciated for this new...
Hi, I set my embedded bespin as below, which works good: _editorComponent = new bespin.editor.Component('editor', { language : my_language, loadfromdiv : true, set : { fontsize : 10, tabsize : 4, highlightline : 'on' } }); and html part for this: <div id...
Hi I have following JavaScript code that I am trying to run. My aim is to grasp the meaning of this in different scopes and different types of invocations in JavaScript. If you look in code below: I have a inner anonymous function, which is getting assigned to innerStuff variable. In that anonymous function as such this points to windo...
I've been trying to learn this myself several hours and just had to give up and plead for mercy. I'm writing a greasemonkey script that interacts with my work OWA (Outlook Web Access), nothing fancy at all. The goal is to find and count the number of times an image (which has no name or id) exists within my 'inbox'. Here's my simple t...
Hi Is there a way we can persist javascript variables across various pages? Suppose in Page A I am setting window.someVar = 5. Then I move to Page B, via clicking a hyperlink in A, and do something like alert(window.someVar) -- I should get a message box displaying 5. Is there a technique to persist someVar as such...? ...
I am trying to reproduce the lock function on posts on facebook with jquery and php/mysql. Below is an image showing the different actions it does when clicked on. I think you would do somehing like on hover, show a hidden div with a tooltip, on hover off remove it. On click event show another hidden div but somehow has to change the ...