On my page I’m trying to do smth like that: Lets say, when we click on some link with id min_reg it animates div with idftr_form_cntr, and shows another div tcr_form_cntr within. There are 3-4 links that does same function but shows another div within ftr_form_cntr. Well if user clicked one of this link…
Tag: javascript
Create Instagram-esque filters with javascript?
Can I create Instagram-esque filters with javascript? The images can be processed client-side or server-side(node.js) I could overlay some pngs and box-shadows with css to get a limited amount of similar effects, but I was wondering if there was anything out there that can truly process images like this in js…
How to extract url data from Reddit API using JSON
I’m trying to extract the image post URLs from a subreddit feed, and render <img> elements on my page. Been trying to hack together the .getJSON() Flickr example from the jQuery Docs for a while now and I’m not getting anywhere. Code in question: In the body, I have the element: div#images I…
Redirect User On Enter Key Based on Text Field Value
I’m trying to simulate some software and I need the user to be able to enter some text into a field and then direct them to another page based on that text. I’ve created the code below but it doesn’t seem to work. I’m using IE 7 and it just seems to refresh the page, it won’t act…
JavaScript Regex to match a URL in a field of text
How can I setup my regex to test to see if a URL is contained in a block of text in javascript. I cant quite figure out the pattern to use to accomplish this EDIT: So the Pattern I have now works in regex testers for what I need it to do but chrome throws an error for the following
How to find the height of an element that is not displayed
I’m writing a webpage that has a table with rows that slide open and closed. Initially, some rows are closed (display: none), and I want them to slide open. Setting the height and using overflow: hidden doesn’t work on table rows, so I’m changing the height of a div inside the table. This wo…
What information can we access from the client? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago. Improve this question I’m trying to compile a list of information that is accessible via j…
image rotation script
So I have this script that will rotate images located in a directory, which works great. However, it requires a refresh of the page in order to rotate the image. Is there a way I can modify this to have it rotate the image when the image itself is clicked? Thanks in advance HTML: PHP: Answer Update: this is v…
Using properties defined in the Options constructor within custom methods in mootools
I’m starting with the Mootools framework. Since I want the code to be reusable, I’m trying to do it with classes. In the code shown below, the intention is to draw a Map using Raphael framework for SVG. The code is working fine, but I’m having problems with the properties that are inside the…
Preloading a youtube embed
I want to have an embedded chromeless youtube video preload its video WITHOUT playing when the page loads. Right now I’m using an awkward “play then quickly pause” script which causes small problems (half-second audio leaks and fails quite a bit). For this seemingly simple functionality, is …