i want to submit form data from the popup window, close the popup, and load in the main window. problem is, it always opens a new 'tab'. i'm using google chrome, i didn't think to try this in
in the <head> of the 'main' window: <script language='javascript' type='text/javascript'> window.name='main'; </script>
However my problem occurs when the user uses the browsers back arrow to return to the previous page, the script executes again returning them once more to the page they have come from. Is anyone aware of a work around to this problem as it would seem there isn't one? perhaps even a better solution for opening the target page from the iframe as top location. This is really causing confusion for users, and I really need to get the issue fixed.
does anyone know of any IE filters that can colorize an image. for example, i have a regular image border around a photo (a frame) and i want to be able to show what that photo will look like with different color frame borders.
i want to be able to add a filter to the images that make up the frame so that i can colorize it in different colors through javascript.
this beats creating 200 different frame images, each representing a different color. thats a lot of management that i dont want to deal with.
the closest i came was this: filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=0, xray=0, mirror=0, invert=0, opacity=1, rotation=0)
This JavaScript is a "Word Filter". It is a type of form validator. When the user submits some text, the validator will check the text for words that has to be filtered.
The words that have to be filtered must be added to the array swear_words_arr. When the user types the text and hits the submit button, if the text contains any word that is present in the array swear_words_arr, the form will not be submitted.
The script can be used for validation of swear words etc.
<html> <head> <title>Word Filter</title>
<!--BEGIN WORD FILTER JAVASCRIPT--> <script language="JavaScript1.2">
I found this script for filtering data in HTML tables that is simple and works in all modern browsers. However, I don't know how to modify the script so that it would search for multiple separate keywords.
I have a divide with id="pic". I have assigned a light filter - pic.style.filter='light()'
I have assigned an ambient and two cones to the filter and made an interface to change the parameters. I now need to read the status of the filter in order to save the states. I have tried pic.filters.item(0).ambient.color - pic.filters.light.anbient.color and some other variations but nothing returns a value.
Let's say I want to filter the contents of a target web page, and present a simpler page on the screen.
For example, let's say a target web page is full of links, text, images, forms, etc. and I want to present a simple page containing just the links.
The original page is not "mine", that is, I can't just edit it in notepad and stick some javascript in it.
So, what I want to do is write some javascript on a new page that I'm developing, that will somehow "access" or "read" the target page, scan and find all the links, and present them to the user.
My question is, what's a straightforward way from javascript to access the target page ?
Should I be somehow loading it into a DOM object and then "walking" the tree ?
Or should I somehow read it's HTML as text strings and parse it looking for anchor links ?
What functions, methods, classes, objects in javascript achieve the goal of something accessing a remote page and "looking" at its contents.
I would like to copy/clone the html DOM from "id1" to variable "tblContent",and remove the tag "<script>" and "<a>" from variable "tblContent", then append the html DOM to "id2" but not working...any error of my code? [code]
I would to achieve the same result of the below function without using callbacks . The function is: $("#user-options-menu").find('a').each(function() { // now I want to filter any <a> tag with <li> parent if (!($(this).parent().is('li'))) { $(this).button(); }}); I've tried with$("#user-options-menu").find('a:not(li:parent)') but without result.
I am trying to achieve an effect similar to this: Our Recent Work | StudeoYou'll notice that if you click on any of the 'filters', the items below are sorted shown/hidden accordingly.
I found this script for free online that does a really basic fade in/fade out slide show. The problem is, it doesn't fade in Firefox! It looks beautiful in IE though (it seems like it's usually the other way around). I've posted the code below, how can I do the same exact thing cross-browser?
// Set slideShowSpeed (milliseconds) var slideShowSpeed = 5500; // Duration of crossfade (seconds) var crossFadeDuration = 3;
Everything is working but I'm trying to replace the "A8" part with a percentage typed in by the viewer.The percentage is simply a non-decimal number between 0 and 100 typed into a box.I know how to grab the value of the box (again, it's 0-100) but how do I convert that number into it's "A8" equivalent?
I wish to display a list of people on my website. These people are speakers who have different talents, or features. Male, female, high voice, low voice, german, english, persian, austrian ... a whole bunch of people. And I want to let my user use checkboxes to narrow down the speakers he could use for his production.
Here's the output filtering list (not complete, just rudimentary while I try to make it work)
My problem : I want to start with all checkboxes selected, showing all the people in this speakerpool, then narrow down as checkboxes get unchecked. This works well with combinations such as ".male .voice-low" which effectively removes all females and the other voices, I found here where I learned that is(".class1,.class2") is different to is(".class1.class2")
But, if I say, I want all english speakers, no matter if male or female, and I check male and female, I get none, since there is no speaker that is both male and female. At least not that I know of
Same issue with the voice-levels: most speakers either speak high or low or medium, yet I'd want to be able to check all those and get a comprehensive list, then.
My Question : Is there a way I can separate classes into class-groups or something? Maybe use prefixes like "sex-male, sex-female, language-english, language-german" and jQuery then uses the prefixes to check if they're supposed to be additive (?) or exlusive.
I am trying to show the data from XML with categories (catalog name="Employee Services"), i want to filter the data before the display of each services, this pls
my xml <catalog name="Employee Services" order="1" color="#CC0033" image="srv_emp.gif"> <service>
the image is like <img style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='aa.png')" ... > $('img').css('filter') will get progid:DXImageTransform.Microsoft.AlphaImageLoader(src='aa.png') Can I get the aa.png directly?
I have an xml file that is dynamically generated at periodic intervals onto disk. the information contained in this file is displayed in a vertical scroller and this works fine. I however need to filter the data based on the logged-in users preferences. These preferences are stored in a database and retrieved after the user logs in. Only data in the xml file that match the user's preferences must be displayed.
I am trying to do something that seems very simple, but can not get to work! Basically, I want to find an element whose ID equals a certain value, as represented by a variable. The variable is derived from a dropdown list. Here is my code:
$(document).ready(function(){ $("select").change(function() { var myClr = $("select").val();[code]....
I am wondering if it is legal to use a variable within the filter - if I replace it with an actual ID value it works fine, but when I substitute the variable name nothing happens.I am sure I am doing something dumb.