Hi All,
Im wondering how I would get the text of a nested list item without getting the text of its children i.e.
<ul>
<li id="node">
I want this
<ul>
<li>
I dont want this
</li>
</ul>
</li>
</ul>
Now using jquery with $('#node').text() gets me all text, where as I just want the "I want ...
Generally i saw any registration form the textboxes are filled with for example Enter first name or Enter Last name here like that how can i write like that. Is it javascript?
can u tell me how can i write that like that help me thanks
...
newNode = document.createElement("span");
newNode.innerHTML = "text";
range.insertNode(newNode);
Is it possible to make the text in innerHTML with red background color? I want to add style="background-color:red" to just created span. Is it possible? Or it must have some id, and then I can change this span with jQuery?
...
Hi,
I just started experimenting with Aptana Jaxer server side javascript engine for my next project. And i have few quesions about that
By using server side JS, can we implement the whole web application without using any server side languages (like C#,java etc). Or server side JS sits in between the web server and other langauge sta...
Hi,
I'd like to create a chart that breaks down my yearly transactions on a monthly basis and gives me the total sale per month.
I have a table with every transaction and its date.
I'd like to use jquery to do this.
What is the best way to go about this?
...
Hi guys,
I have this script to print a page, which it does fine.
However, after the script runs, the browser redirects to the folder root:
<SCRIPT Language="Javascript">
//PRINT PAGE FUNCTION
function printit(){
if (window.print) {
window.print() ;
} else {
var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASS...
I want to execute a particular number of statements after some delay.
For eg:
function findPosX(obj) {
var curleft = 0;
if (obj.offsetParent) {
while (1) {
curleft += obj.offsetLeft;
if (!obj.offsetParent) {
break;
}
obj = obj.offsetParent;
}
} e...
I have a Fancybox (or more accurately) a number of fancy boxes on an asp.net page.
My Fancybox (jquery plugin) works fine until a postback occurs on the page then it refuses to work.
Any thoughts? Anyone experienced similar behaviour?
UPDATE : Some Code..
I have a databound repeater with a fancybox on each repeating item.
They are i...
Hi all,
When using a gridview and not logged into a asp.net website, the java scrpit does not appear to work.
If I am logged in as a user, any pages with gridviews work fine.
The only error I'm getting when checking the javascript with Firebug is
'ReferenceError: DES_ValOnSubmit is not defined.'
This is a reference to a Peter Blum java...
What is the right way to set a value on the client side, through JavaScript, in the ASP.NET AJAX CascadingDropDown extender?
There is a partial answer at http://stackoverflow.com/questions/116564/how-do-you-reset-asp-net-ajax-cascading-dropdown-control-client-side, but it only involves resetting the controls, not actually setting a valu...
Hi Guys
I have created a tabs by jquery and i want to display different data from database at each tab how can i do that knowing that it is the same container and same data but with different conditions hope to find an answer soon
And i am using php and javascript
Thanks
...
When I generate a text input like this:
<input type="text" name="name" />
When I start to type, the browser will display a dropdown list below the text input. This list contains the values I previous used for this text input in this browser. I want to generate my own autocompletion via ajax.
How do I tell the browser with either css ...
<html>
<script type="text/javascript">
function func() {
alert(document.getElementById('iView').contentDocument);
}
</script>
<body>
<iframe id="iView" style="width:200px;height:200px;"></iframe>
<a href="#" onclick="func();">click</a>
</body>
</html>
After click, Firefox returns [object...
The MaskedEditExtender does a good job of enforcing the rules, but my users have trouble typing into its TextBox.
I want to select all the contents of my TextBox when it gains focus.
A regular JavaScript solution does not work.
onfocus="javascript:this.select();"
The MaskedEditExtender interferes.
How can I select all the contents ...
I am continually pulling in a list (over 200) entries from a remote server and showing them in a table (many pieces of data per row). The data changes and fluctuates over time. What's the most efficient way in JS to render this to the screen. As the data changes do I simply wipe my DOM and re-render with the new data; do I have a list of...
Hi,
I've wrote some code that will allow me to have some greyed out text on an input form, and when the user focuses on it, the text will disappear and become ungreyed out, if that makes sense...
function editableAlt (elem, colour1, colour2) {
var elem = document.getElementById(elem);
elem.onfocus = function () {
if(this.v...
Hi,
As I'm still learning, this question might seem to be very simple to answer, but I still need to ask.
How do I need to change this script, so it will not display all the tooltips?
What is happening now is whenever I hover on .pink-nose a all the .tooltip are fading in at this same time
$(function(){
var pn = $('.pink...
Hi guys,
I decided to try and learn more JQuery and here is what I have come up with.
It should be a simple enough job, but I can't get my head around it. I can add it up, but when I change a package, the price just keeps going up. I know I have to add some logic to decrement the counter, too, but I think a fresh pair of eyes would be...
I'm writing jQuery for a page that is a complex mess of many DOM elements (I have no control over this). The primary target browser is IE7, and I have concerns about the speed of its JavaScript engine. Scripts I've already written are laggy and have been performance-tuned to the best of my ability.
I could write script that is simple to...
AFAIK, the JQuery ID selector:
var ctlId = $('#' + strControlId);
gets translated into a call by document.getElementById.
Questions:
Is document.getElementById supported by ALL the browsers?
I am currently using the find object function found below for selecting an ID. Would JQuery selector essentially do the same thing?
...