Hi all,
How can I detect the number of printing page will be on a form using JavaScript?
I need to get the number of pages that a form would be so I can stick a watermark per page to be printed.
Thanks.
...
Hi all,
So there seems to be quiet a few ways to handle broken images on a html page. I would like to know what ways are in popular use and what ways are viewed to be best practice?
To start I've looked at some myself like:
function imgErr(source) {
source.src = /images/missing.jpg";
source.onerror = "";
return true;
...
I am a developer for sometime now, and for the past few years I am using prototype framework and it's implementation for OOP, to be used in Javascript. I've used jquery and some other frameworks as well.
I 've been studying how js works and how differs from OOP, as it is a prototype oriented language. In my opinion is in fact a great co...
I currently have a page that contains a RadTreeView. On each node of the RadTreeView is an ASP.NET Ajax CollapsiblePanelExtender. In the code-behind I have certain panels expanded and certain panels collapsed based on some business logic. Is there a way to detect when ALL ASP.NET-generated Javascript (collapsing/expanding of Collapsib...
Hi everyone.
I've got an ASP.NET page that includes an asp:TextBox with a RegularExpressionValidator attached, and some JavaScript that creates an INPUT textbox (among other things) on the page.
I'd like to attach another RegularExpressionValidator onto that new INPUT without going back to the web server. Is this possible?
Many thank...
I have the following Silverlight control defined:
<object id="objImageViewer" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="500px">
<param name="source" value="../ClientBin/SomeImageViewer.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" va...
I had a simple working (ASP.NET) Scenario here:
3 asp:RadioButtons that each have OnCheckedChanged event that will update an asp:gridview.
But now, I want to put some description for each radiobutton selection,and I thought it would be a good idea to embed them in JQuery UI Tabs like the following :
<div id="tabs">
<ul>
<li><a href...
For my current project I am working on a home page that has a series of tabs above a content box that each execute an ajax script to load new content into the content box. However, some of these pages contain a flash object called with SWFObject and when the ajax script calls the page, the SWFObject javascript is not executed and I am l...
Using Javascript, How to get number of items of radio button with the same id in html;
I am aware if I can wrap a form on top of the radio button I can get the length like
document.formname.radiobtnobj.length;
Wondering if is there a way I can get the number of items if I do not have a parent form to that control.
...
Hi guys... I'm trying to make this jquery plugin => http://leandrovieira.com/projects/jquery/lightbox/
work with multiple galleries on the same page.
The problem is, everytime I click on a picture from a certain gallery, I get all the pictures from all the galleries on the same page. Let's say i've got 2 galleries of 6 photos each. If I...
Hi,
Does anybody know if Treegrid supports OnMouseOver event?
I need make an ajax call on mouse-over which might be compute intensive.
Thanks
...
jquery sliders contain a "animate" opton that when set to "true" will slide the handle into postion when the slider bar is clicked.
Im using my slider to scroll the content in another div, creating a similar eeffect as the one on the apple website. http://www.apple.com/mac/
the problem is that when i click the sliderbar it smoothly ani...
i am not sure if its a total n00b question but here goes.
i have a JSON array with values:
array[0].1 = "the value I want"
now I want to include all "the value I want" into this one variable like:
the value I want [1], the value I want [2]....
how do i do it?
infact if there is a way I can get the comma seperated values into a var...
Is there a way to get all variables that are currently in scope in javascript?
...
Is there a way to create a light see through watermark over an entire web page? One that stays on the screen, even if its scrolled? My thought was to create a .PNG bitmap and use a DIV tag with a style sheet that has my PNG set to the background image, as well as position absolute set. The problem is, I don't think it will scroll as my p...
I've been messing around with the ECMA-262 standard (ECMAScript Language Specification, 3rd edition, if it matters for this - I have not found any difference between the 3rd and 5h edition on String Type / String Object).
There's one thing that baffles me, the difference between the String Type and the String Object, yes I know the diff...
I have a user control written in C# in a Telerik ajaxified page. I wrote a context menu using RadContextMenu and everything works fine except one of my menu items is "refresh". How can I refresh my user control from javascript? Basically it needs to some how force the TelerikAjaxManager to refresh my control.
...
Hi friends,
i develop a webpage , in that we allow user to drag a file into a list box or text box . after drag the file in to a listbox i need to read the file path of the file . Please help me to solve the issue .
...
Noob at javascript etc. here. I’m a php/core Java programmer tasked with maintaining a bunch of JS code in JSPs using Struts. What I need to do is simple, but I can’t figure out an easy solution. Given the following code excerpt for a struts’ed HTML form and a JS submit function, I need to modify the text field “query”’s data after the ...
I'm doing some coding in JavaScript, and I am having a lot of instances where I have to check some stuff before I proceed. I got into the habit of returning early in the function, but I'm not sure if I am doing this right. I am not sure if it have an impact on the complexity of my code as it grows.
I want to know from more experience...