Hi
I am trying to make a regex that will just look for and remove script tags(its the only tag I wanted removed since I think it is the only one that can cause damage).
Anyways I know there are so many way to write a script tag that is still valid. Will this catch them?
<\s*script\s*>.*?<\s*\/script\s*>
Edit
or would it better to t...
Could anyone can tell me how to add effect to all divs?
jQuery:
data = $("#sortable_list1").sortable("serialize");
update:function()
{
$.ajax({
data:serial,
url:"list.php",
type:"post",
success:function(data){
$("#serverResponse").html(data);
}
});
}
Html:
I have 2 divs which id is sorta...
Hello,
I have an EditorGridPanel with a CheckboxSelectionModel. In the Ext.data.Source binded to this grid, I have a boolean value saying if the Checkbox of the rows should be checked by default or now.
How can I have a list that appears by default with the default Checkbox values correctly set, this based on the data value ?
Thank...
Hi Friends,
I need to know, is it possible to find a file in web server is updated using javascript. In my java application i am updating one file using java if any error occurs say, like logger.. By using javascript i need to read that file immediately if any updates occured and show it in a web page... First i need to kno...
Is it possible to create multiple instances of an object in javascript such that they all are ready to be manipulated/edited at the same time? This relates to my earlier question here: Structure of orders in restaurant. What I am trying to do is keep each order object ready for editing until the customer is ready to pay/leave so that new...
Hey there.
I'm trying to use the value of an asp:HiddenField control in javascript after postback and pageload.I tried something like this but it does not work.(the get function works fine but I cant seem to make "hidVal" get the value from the asp:HiddenFIeld)
<script type="text/javascript" language="javascript">
var hidVal=document....
How can we remove a selected item from SELECT whose SIZE is not declared, means acting as drop down list. using javascript
...
This is the setup:
I have two websites on two different domains:
www.website1.com
www.someotherwebsite.com
This is what I want to do:
When a user is on www.website1.com and clicks a link, I want a window to popup showing www.someotherwebsite.com.
When the user clicks a button in the popup window (showing www.someotherwebsite.com) ...
Hi guys,
I currently have a table that has a width of 94%, and the following toggle set to it:
$(document).ready(function(){
$("#moreinfo").hide();
$("#toggleinfo").click(function () {
$("#moreinfo").toggle('normal');
});
});
It toggles fine, but as soon as you toggle, the width goes really small and I have no idea why...
The problem is that, by default, Prototype library can’t access anything in the iframe.
There is some workarounds I found (e.g example) but no one provides full support for protytpe/iframes. Does anyone know a way to do that?
PS: not using iframes is not an option :)
...
Hi! I'm trying to copy element from one in my page to another (via javascript). It's successfully copied but appeared empty.
How to copy/move canvas with content?
...
hey
i have a google map in my site
and attach to it event handler of moveend
GEvent.addListener(map, "moveend", function()
{
map.clearovrelays();
GetLayerDataFromServer(); //it set the markers again on the map acording the map position
});
and also i have event handler for click on marker
GEven...
I am performing a GoogleMaps/VirtualEarth geocode-request and the resulting image ( showing the location on a map ) is displayed on my site.
The problem is, I need part of this graphic 'captured' and displayed on the form.
Is it possible to do this and add the result to the form?
...
<form action="page.php" method="post">
<input type="text" name="some_text" />
<input type="submit" name="some_submit" /
</form>
I want to submit this form by pressing defined keyboard button. I wonder how to do it. If it was just an <a> element it would be simple - I would just change window.location value after handling keypre...
I'm trying to implement a tinyMCE editor into an ExtJs environment. But it's not going well.
First things first: Include the necessary scripts.
<script src="js/jquery-1.2.1.min.js" type="text/javascript"></script>
<script src="ext-2.3.0/adapter/jquery/ext-jquery-adapter.js" type="text/javascript"></script>
<script src="ext-2.3.0/ext-...
Hey. I am needing to get a thumbnail scroller to use for a project. I am unsure how to do this myself but feel what I want is basic. I am looking to simply have a div with left and right arrows that scroll through an array of images.
I am trying to use prettyGallery (http://www.no-margin-for-errors.com/projects/prettyGallery/) and I ...
I'm trying to figure out how to do a replace with Javascript. I'm looking at the entire body of the page and would like to replace the keyword matches NOT within an HTML tag.
Here is an example:
<body>
<span id="keyword">blah</span>
<div>
blah blah keyword blah<br />
whatever keyword whatever
</div>
</body>
<script type...
I'm trying to do some experimental stuff for which YUI looks like the best solution. The Getting Started documentation is all written on the assumption that you already know how to use YUI and only need to find out how to use specific components. Is there any documentation available that tells you how to go from an empty public_html dire...
Hi All,
Can anyone tell me how can i write a function in accept condition and then how does it finds out that what to accept and what not to accept.
Fo r eg i want to accept div a and div b in accept condition.How can i write i through a function.
...
Why people write statement like
e.keyCode ? e.keyCode : e.charCode
Some people also does e.which
Please tell
...