hi there,
Just looking for the best practise way of doing this.
I have a table listing information and in the last column is a button with "Edit/View". When the user clicks on the button a div area appears with more information which can be edited
Code below with some fragments of jstl
<script type="text/javascript">
//Click on Edit/V...
i have a text area and a click me. In that text area, if a user enters some URLs then the input should be marked invalid on the button click.
For example, if my input is
"StackOverFlow, the greatest codding buddy you could ever have. The URL: www.stackoverflow.com You can also checkout meta.stackoverflow.com which is also super cool"
...
When running:
if (data.custaccount.webaddress) {
alert('found it');
}
I get the error
data.custaccount is undefined
The only way i can get around it seems to be with multiple IFs like so:
if (undefined != data && undefined != data.custaccount && undefined != data.custaccount.webaddress) {
alert('found it');
}
Is there any...
All, Using Ext JS (3.2), how is it possible to detect whether a user is pressing/holding down a specific key whilst performing another action with a DataView component?
The specific application is to see whether the control/shift key is depressed when a right click event occurs on a DataView node, if it is, the node is selected along wi...
Hey
I have encountered with a problem with pricing.
I need to format price input to be of the type XXXX.YY
the problem is, the input price can be of shape XXX,YY in europe or XX,XXX.YY if talking about big numbers.
Is there a JS or C# lib that helps there?
thanks
...
Hi!
I have a form in which I want to edit a HTML template. It has 2 textareas, one for the HTML and another one for the CSS.
I'd like to use either TinyMCE or CKEditor for the HTML textarea.
Is there any way to change the content CSS in either of them to match the CSS in the CSS textarea on the run, so when I change the CSS it is auto...
Hi, I have this code on my page, but the link has different names and ids:
<div class="myclass">
<a href="http://www.example.com/?vstid=00575000&amp;veranstaltung=http://www.example.com/page.html">
Example Text</a>
</div>
how can I remove and Replace it to this:
<div class="myclass">Sorry no link</div>
With PHP or...
I'm trying to get a greasemonkey's script to work jquery and json.
this is the json url
http://www.sora101.net/auction.php?id=1&callback=
this is part of the script
$.getJSON("http://sora101.net/auction.php?id=1&callback=?",
function(data){
alert(data.id);
}
...
Let's say I've created this plugin:
$.fn.my_namespace = function() {}
with level 1 sub functions:
$.fn.my_namespace.category_func = function() {}
and level 2 sub functions (actual application):
$.fn.my_namespace.category_func.app_func() {
alert(this);
alert(this.selector);
}
Execution:
$('div').my_namespace.category_fun...
Hi All,
How to create below mentioned table structure in jquery/javascript:
<table>
<tr>
<td>
one
</td>
<td>
two
</td>
<td>
three
</td>
</tr>
<tr>
<td>
single
</td>
</tr>
<tr>
<td>
o...
What is wrong this way?:
HTML:
<iframe onload="scrollme(this)" src="somesite.com"></iframe>
Javascript:
function scrollme(ob) {
o.scrollTop = 100;
}
...
One of my website's users is experiencing Javascript problems with his IE8/WinXP setup, with code execution apparently aborting halfway through, but there are no alert boxes or other hints as to why and I'm unable to replicate the problem locally. How can I get any information out of his system, so I can start debugging this?
Just figu...
I'm using the jQuery AutoComplete plugin to pre-fill a field called 'Model' depending on the name of a 'Car' entered in a previous field.
However, if the user types in 'C' in the 'Model' text box, and then changes the manufacturer and types 'C' in the Model text box again, the same models appear. I believe this must be a cache issue wit...
i am using an fckeditor outside the update panel and rest other things are inside update panel
but on refreshing the page it is throwing an exception
function WebForm_OnSubmit() {
null;(function()
{
var editor = FCKeditorAPI.GetInstance('ctl00_ContentPlaceHolder1_FCKeditorSelfDocument');
if (editor)
editor.UpdateLinkedFi...
If yes, could you please show me an example of how to do it?
...
Hi,
I wonder why I cant access Object by ClientInstanceName from javascript.
example:
function NextStep(pageControl) {
currentStep = pageControl.GetActiveTabIndex();
switch (currentStep) {
case 0:
selectedRowsCount = GridViewClient.GetSelectedRowCount();
break;
}
The error is:
There is no...
hi, i thought i had solved this but my basic example seems to not be working. not sure why but i am sure it is a small issue. any help is appreciated.
<html>
<head>
</head>
<body>
<textarea rows="20" cols="61" id="entry" name="entry" class="body_text" wrap="physical">
</textarea>
</body>
</html>
<script>
function keypress(e){
var key_s...
How can I add script inside a php code? suppose i want to give an alert for a button click.. how can i do that??
...
I set up an interval (setInterval) to scroll an iframe (scrollBy) but how do I know that it's time clear that interval (clearInterval)?
...
I am opening a child window using window.showModalDialog() method.
In the child page i have few server side controls whenever a postback happens the child page opens in a new window.
I have also set in my head tag,but it is not working.
<base target ="_self/>
For example
In Page 1: i have an anchor on whose click i open a child p...