Automatically load new HTML page at given time

I would like my homepage to change each day at a specific time (1pm). The page has a 24hr countdown timer and when it reaches zero, I would like a new page to load and the timer starts again. I understand how to make a page refresh after a particular time <script> setTimeout(function(){ window.location=’Page2.html’; }, […]

How to solve this Javascript error TypeError: 'undefined' is not an object (evaluating 't.subscribe')?

Following error occur when I am clicking on one item to open on web.Can anyone of us know solution? Error: test_inline_edit_an_item_app_built_via_app_builder(TaskFeature): Capybara::Poltergeist::JavascriptError: One or more errors were raised in the Javascript code on the page. If you don’t care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see […]

Get Javascript object value by key

var Array = []; {‘DateOfBirth’ : ’06/11/1978′, ‘Phone’ : ‘770-786’, ‘Email’ : ‘’ , ‘Ethnicity’ : ‘Declined’ , ‘Race’ : ‘OtherRace’ , } I need to access the ‘Race’ here.. how can i do it… Its an array which holds this data…

Jquery Live Validation

After having a search around I could not find exactly what I want, I am looking to validate a form client side using the Jquery library and some form of validation plugin. I was hoping that some one could advise me on whether there are any validation plugins out there that do not use generic […]

Using phantomjs to make ajax calls using extjs proxy on local file

I have a basic EXT JS store that uses a proxy to access a local json file. e.g. … proxy: { type: ‘ajax’, api: { read: ‘data/mydata.json’ }, reader: { type: ‘json’, root: ‘datas’, successProperty: ‘success’ } } … I want to use Maven, Jasmine and PhantomJS to build and test my project via Atlassian […]

jQuery appended text is invisible

I’m trying to create a couple of buttons above a textarea to insert some HTML code — a VERY poor-man’s HTML editor. I have a couple of INPUT elements, and I’m using jQuery to set a click handler that will call’s jQuery’s append() or html() or text() functions. The handler fires, it shows a debug […]

Load a page in the same window via javascript

How do you load a page in the same window via javascript?

Thank you alert upon form submission

I have a very basic form at and it is working great. When you submit the form, the user is brought to the index.html with no message that the form has been sent. I am looking to initiate an alert that says, “your form has been submitted” with an x button. My code looks […]

How to use PHP to return a count of images in a directory?

I have a Javascript object like this: var count = { table:19, people:39, places_details:84, story_1:18, story_2:6, story_3:11 } Each item (table, people, etc.) is a directory within my graphics/ directory at the site root. I would like to use PHP to supply the numeric values by counting the JPG images in the corresponding directory. I […]

DIV onload Not Firing JavaScript Method

I am using ASP.NET MVC 4 and I have a DIV like this: <div id=”map_canvas” style=”width: 500px; height: 400px;” onload=”mapAddress();”></div> Then, in a JavaScript file (that I’ve verified is loaded) is the mapAddress function: function mapAddress() { //In this case it gets the address from an element on the page, but obviously you could just […]