I need to open new browser window using java script window.open, i have html page but it getting error as page not found.This is from jsf/icefaces.I have display the html page directly.Please help me...
JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(),
"window.open('printerFriendly.html','Print',,'width=300','he...
I have a little web admin tool I'm working on that allows a user to view & edit the properties on a DB Object. Most of the settings are "yes/no/don't know" type properties.
There's quite a lot of settings to display so managing screen real-estate &
usability is important.
When I first scaffolded the UI, I was using Test 1 in the abo...
I ever raised the question at
http://stackoverflow.com/questions/3528000/how-to-embed-the-whole-body-into-a-created-new-div-with-jquery, but inquired for 'jQuery',
@Avinash be thanked.
But now I want to do the same thing with javascript coz I encountered a head-ache problem in http://stackoverflow.com/questions/3615451/how-sys-applica...
Hi
I have implemented a scroll bar with in table column. Here i want to scroll the text like marquee. I placed the content with in that scroll div. But my problem is that . i want to stop the marquee by clicking on the scroll bar.
simply
when page load marquee(text move from bottom to the top)will be active
when clicking or dragging th...
Is there a jQuery equivalent to prototype's defer?
I'm looking for something that will delay the execution of a script until all of the scripts in the page are finished executing.
Thanks!
PART II:
Is there any way to see if there are other setTimeouts in the queue and delay execution until after they fire? I see in the comments tha...
Hi
I have a website that uses master pages. On the master page I have a sidebar div containing an Ajax accordion control that provides site navigation. When the user clicks a link from the accordion, I pass the index of the pane on the query string. Each webform inherits from a single base class. In the Page_Load event of the base clas...
I'm having some trouble adding a javascript variable onto the end of my link here's my code
var locid = $.trim($(this > '.locid').text());
$(this).prepend('<a class="booknow2" href="../../availability/default.aspx?propid=' + locid + '"><span>Check availability »</span></a>');
Any help would be appreciated
Thanks
Jamie
...
I think I have misunderstood how Javascript prototypal inheritance works. Specifically, the prototypes internal variables seem to be shared between multiple different sub-objects. It is easiest to illustrate with code:
var A = function()
{
var internal = 0;
this.Increment = function()
{
return ++internal;
};
};
var B = func...
Do you have to first draw any source images into the canvas before you can obtain the pixel array data? or is there a better way? such as having a second hidden canvas?
I am using several images that I will mash together, and draw into the main canvas. What is the best way to obtain to say backgroundData, objectsData, effectsData, from ...
I have an iframe from an external source. I want to alter it (with javascript) so all links are opened with another absolute URL. I'm assuming the best approach is to modify the base property (element)
For example, assuming I embed stackoverflow.com as:
<iframe src="http://stackoverflow.com"/>
I want that when a user clicks the link...
Hi,
For example, when I download Jquery, I see there is always 2 file: jquery.js and jquery-min.js.
How could they create jQuery-min.js -> in this file, it is not only compressed but also obfuscated. Which tool is best to do this?
I am working with Visual Studio 2010 Ultimate, would it be also possible as well?
Thanks in advance!
...
I want to
A) open a pop up window via javascript - easy enough
B) close this window via Javascript - easy enough
C) ensure that the window that spawned the popup in A is focused on again when close in B. Seem to remember can do this but can't remember how.
...
I've written a sidebar addon:
which fetches the current page's URL
makes a call to a personal server with the URL
and displays contextual info in the sidebar
Currently, this function is invoked on following events:
on enabling the addon
on window load
on appcontent load
on TabSelect
However, there are times when a web page takes ...
I'm getting this error in IE8:
Page Error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5;. NET CLR 1.1.4322;. NET CLR 2.0.50727;. NET CLR 3.0.04506.30;. NET CLR 3.0.4506.2152;. NET CLR 3.5.30729;. NET4.0C)
Timestamp: Wed, 1 Sep 2010 11:15:04 UTC
Message: Object does not support this propert...
using javascript
I have a function
function test(variable)
{
if(variable != 'undefined')
{
console.log('variable is not set');
console.log('variable', where);
}
}
i call it using test();
yet in the console I get
'where is not set'
'where is set as undefined'
why?
Update
This function is not what i am actua...
Using javascript, how do I get all DOM elements that start with a certain prefix like <prefix:suffix>
Code example:
<div>
<foo:bar1>hello</foo:bar1>
</div>
<foo:bar2>world</foo:bar2>
But, without looping through ALL elements (for performance reasons)?
Thanks, Ran
...
I'm looking for a free open-source Javascript/ECMAScript compiler or lexical analyzer, in order to compile javascript code to an executable that can run on Linux.
I understand that I will probably need to add some objects/APIs for the javascript code to be able to perform operations within the O/S. I was hoping that some of this work h...
This is really hard to explain. I have some divs with an id within a table
<table id="dgAvailable">
<tr> <td> <div id="HEYD"> </td> </tr> <tr> <td> <div id="HANW"> </td> </tr>
</table>
i need to fill those divs with this content
<div class="evenprop"><h3>Hanworth</h3><span class="locid" style="display:none">HANW</span></div>
<div ...
Ist there any better way to replace/wrap the h*tp://name.tld/request_url?parameter or h*tps://name.tld/request_url?parameter text in some certain html elements with an <a href>
HTML
<div id="posts">
<div class="post">
Tweet text 1 http://google.com and other text.
</div>
<div class="post">
Tweet text 2 https://www.google...
I have a gridview with a cheackbox and a dropdown.
The checkbox, by default, is not checked.
The dropdownlist, by default, is disabled.
In the edit mode of the gridview, when the user clicks the checkbox I want the dropdown to become enabled. If I could do this client side that would be awesome, if not I want to do it server side WI...