I tried to use Firebug Lite (via the bookmarklet and also adding it to one of my web sites).
I seem to get the alert:
"Unable to detect the following script "firebug-lite.js" ... if the script has been renamed then please set the value of firebug.env.liteFilename to reflect this change"
Alot. Especially when I try to close the tab. Th...
Lets suppose that I have the following markup:
<div id="placeHolder">
</div>
and I have a javascript variable jsVar that contains some markup and some javascript.
By using Mootools 1.1 I can inject the javascript content to the placeholder like this:
$('placeHolder').setHTML(jsVar);
This works in Firefox, Opera and even Safari and...
Is there any way to check if the client accepts cookies only with javascript code?
...
I have a bunch of automatically generated divs that have a number for their id. Whenever I use this.id to fetch the id it outputs nothing. However when the Id is text only it outputs the id properly. How could I fix this? Anything Helps. Thanks
Edit:
$(".draggable").draggable();
$("*", document.body).click(function (e) {
...
For example, I have a div with an id (lets say "the_div"). This div contains an unordered list, and this list has 5 items in it.
How would I add a class to the third list item, without any of the list items having a class attached to them?
Edit: Even better, how would I change the list item text to equal what number element it was?
Th...
This runs in as3, and javascript. Why? I know how && and || work, but a list? is this as3 specific? Is this in other languages? I'm a mouth breathing PHP/AS2 programmer. Or did everyone already know this and I'm a tool for not reading documentation properly?
AS3
if (true, true, true) {
trace("true?")
}//result - "true?" traced...
I'm a newbie to jquery, but am trying to use it in my project.
I'm trying to loop through all the links inside #rate_box and add a click event to them. This click event will post some data to an external php script, and then it should unbind the click events on all of the links (so people cannot rate twice in quick succession.) Then it s...
I can use the getElementsByTagName() function to get a collection of elements from an element in a web page.
I would like to be able to use a similar function on the contents of a javascript string variable instead of the contents of a DOM element.
How do I do this?
EDIT
I can do this by creating an element on the fly.
var myElement...
I'm looking to do a presentation in a couple of weeks and was wondering: What are the top ten Javascript incompatibilities that you look out for when developing? What trips you up? I can start with one:
var somevar = {
'internet': 'explorer',
'hates': 'trailing',
'commas': 'in',
'json': 'code', // oh noes!
}
What are some other co...
var req = function () {
$.ajax({
url: "out.php",
cache: false,
success: function(html){
$("#stuff").empty().append(html);
},
complete: function(){
req();
}...
Hi
I am desparate now to find a solution to this problem. I'm trying to call a function on the onclick even inside another function. The event works fine if the parameters are static. I want to get a the value from the global function. The example is as follows:
var dataxml = unescape(xml);
var xmldoc = getDomAdapter().parseXml...
Hello all. I'm working on a web application for which I'm attempting to implement a full featured windowing system. Right now it's going very well, I'm only running into one minor issue. Sometimes when I go to drag a part of my application (most often the corner div of my window, which is supposed to trigger a resize operation) the web b...
In javascript, how would you check if an object is actually visible. I don't just mean checking the visibility and display attributes. I mean, checking that the element is not
visibility:hidden or display:none
underneath another element
scrolled off the edge of the screen.
EDIT: For technical reasons, I can't include any scripts. I ...
Is it possible to create a text sprite and selectively display parts of the same HTML file and ignore the rest. The part to be displayed is selected by a menu generated generated using CSS with links within the same page.
(The length of each section is unknown and expected to vary greatly).
Communicating with the server is unfortunatel...
Hi,
I've started to use GeckoFX but I got a major issue with javascript:void(0) that acts as anchor which lets JS to pop new window and load url. How do I tell browser to do this INSIDE the geckobrowser component? RIght now, when I click it..nothing happens.
...
Is there an easy way to read settings from a (asp.net) web.config file using javascript within a html page?
BTW I have found examples of passing config settings into javascript blocks within aspx pages e.g.
<script type="text/javascript">
function ReadConfigSettings(){
var wibble = '<%=ConfigurationManager.ConnectionStrings["MyCo...
In a recent question, I received suggestions to talk on, amongst other things, the aspect of JavaScript where functions are 'first class' objects. What does the 'first class' mean in this context, as opposed to other objects?
EDIT (Jörg W Mittag): Exact Duplicate: "What is a first class programming construct?"
...
In this very simple ASP.NET application, Visual Web Developer 2008 Express CAN debug the Javascript fine but the full version of Visual Studio 2005 CANNOT debug it, namely: when I click on a line in the main.js file it gives me a red circle with a question mark on it, the mouse hover revealing: "This break point will not be reached, no s...
The I wrote in the <a href='javascript:newsdatainfo(document.xmldoc,...see below. But it still does not work.
var dataxml = unescape(xml);
var xmldoc = getDomAdapter().parseXml(dataxml);
var rootnode = xmldoc.getElementsByTagName('result_set')[0];
var newsresult = rootnode.getElementsByTagName('item');
var pages = Math.round(newsre...
I followed several web resources to understand how to show a popup from client side, and I made this code:
<asp:ImageButton runat="server" ID="btnOk" ImageUrl="imagens/btnAlterar.gif" OnClientClick="btnOkClick()" />
<asp:LinkButton runat="server" ID="dummyForPopup" Visible="false"/>
<ajaxToolKit:ModalPopupExtender runat="server" Behav...