how to start asp.net mvc 4 ajax call
plaese guide me to start asp.net mvc 4 ajax enabled multi platform web
application. I have a REST service hostrd in another domain, want to
consume it. please guide me whether i need to access that service from
javascript ajax call or create models at server and request my server with
ajax call. any guides links much appreaciated.. regards ani
Tuesday, 3 September 2013
Adding animation to only one instance of a class
Adding animation to only one instance of a class
I'm working in WordPress and have written a shortcode function in my
functions.php file:
// shortcode function for call to action boxes
function actionbox( $atts , $content = null ) {
// Attributes
extract( shortcode_atts(
array(
'image' => 'URL',
'title' => 'Title',
'url' => 'Link',
), $atts )
);
// Code
return '<a class="ctalink" href="' . $url . '">
<div class="ctabox" style="background-image: url(' . $image . '); width:
350px;">
<div class="ctainner">
<div class="titlebox"><h1 class="ctatitle">' . $title . '</h1></div>
<h4 class="ctabutton">' . $content . '</h4>
</div>
</div></a>';
}
add_shortcode( 'CTA', 'actionbox' );
Then I added some jQuery to add animation to the call-to-action boxes
created by my shortcode.
Problem is that while everything is working, when I hover over one my
boxes, the animation applies itself to all the boxes.
Here is all my code: http://jsfiddle.net/sahiba25/kGryV/4/
Any ideas as to how I could have the animation going on just the one box
that I'm actually hovering on?
I've already tried addClass, but it adds the "active" class to all
instances of the boxes.
Thanks!
I'm working in WordPress and have written a shortcode function in my
functions.php file:
// shortcode function for call to action boxes
function actionbox( $atts , $content = null ) {
// Attributes
extract( shortcode_atts(
array(
'image' => 'URL',
'title' => 'Title',
'url' => 'Link',
), $atts )
);
// Code
return '<a class="ctalink" href="' . $url . '">
<div class="ctabox" style="background-image: url(' . $image . '); width:
350px;">
<div class="ctainner">
<div class="titlebox"><h1 class="ctatitle">' . $title . '</h1></div>
<h4 class="ctabutton">' . $content . '</h4>
</div>
</div></a>';
}
add_shortcode( 'CTA', 'actionbox' );
Then I added some jQuery to add animation to the call-to-action boxes
created by my shortcode.
Problem is that while everything is working, when I hover over one my
boxes, the animation applies itself to all the boxes.
Here is all my code: http://jsfiddle.net/sahiba25/kGryV/4/
Any ideas as to how I could have the animation going on just the one box
that I'm actually hovering on?
I've already tried addClass, but it adds the "active" class to all
instances of the boxes.
Thanks!
How to choose combination of Firefox and Selenium Webdriver versions for web automation?
How to choose combination of Firefox and Selenium Webdriver versions for
web automation?
If we choose latest version of Firefox or latest version of
Selenium-Webdriver, we couldn't automate few tests because of either
something not supported in latest version of Firefox or latest version of
Selenium-WebDriver.
In such situation, which combinations of Firefox version and Selenium
Webdriver version should we choose? (I mean, should we go for one/two
version back of latest Firefox version and/or one/two version back of
latest selenium webdriver version or some other combination?)
web automation?
If we choose latest version of Firefox or latest version of
Selenium-Webdriver, we couldn't automate few tests because of either
something not supported in latest version of Firefox or latest version of
Selenium-WebDriver.
In such situation, which combinations of Firefox version and Selenium
Webdriver version should we choose? (I mean, should we go for one/two
version back of latest Firefox version and/or one/two version back of
latest selenium webdriver version or some other combination?)
Adding FB Activities to an HTML Webpage
Adding FB Activities to an HTML Webpage
I'm trying to get Facebook Posts, Events, etc to appear on a Webpage. An
active newsfeed area to appear on the website. Basically want whatever is
posted on this Facebook page:
https://www.facebook.com/TheRestaurantChannelnet
To show up in a newsfeed at the bottom of this webpage:
http://www.therestaurantchannel.net/restaurantchanneltv.html
Any assistance would be greatly appreciated. I've tried several options.
You can see on the webpage already at the bottom I've manually added a
"post" which isn't want I want, and tried adding "activity" but nothing
shows up, and added "comments" area.
I'm trying to get Facebook Posts, Events, etc to appear on a Webpage. An
active newsfeed area to appear on the website. Basically want whatever is
posted on this Facebook page:
https://www.facebook.com/TheRestaurantChannelnet
To show up in a newsfeed at the bottom of this webpage:
http://www.therestaurantchannel.net/restaurantchanneltv.html
Any assistance would be greatly appreciated. I've tried several options.
You can see on the webpage already at the bottom I've manually added a
"post" which isn't want I want, and tried adding "activity" but nothing
shows up, and added "comments" area.
Jquery: finding text from sibling elements
Jquery: finding text from sibling elements
I have dynamically generated HTML table that I want to use with JQuery. It
looks kind of like this, only with more <tr> elements.
<table>
<tr>
<td class="name"> Apples </td>
<td class="value"> 2.33 </td>
<td class="amount"> <input type="text"></td>
</tr>
</table>
The script I'm writing would take whatever's in the text input field,
multiply it by the float specified in the value td and output it. However,
I have problems getting to that <td> using JQuery.
I tried something like parseFloat($(".amount
input").parent().siblings($("td.value")).text()) to get the value, but it
doesn't work - it seems to be trying to multiply it by every element
regardless of the class. I tried a <tr> where the only data was
integers...
2013-8-28 | 2.1 | 20
...and it spat out 4026. I have no idea why.
So, the question remains: how do I get the contents of the <td> with the
class value starting from the input on the same <tr>?
I have dynamically generated HTML table that I want to use with JQuery. It
looks kind of like this, only with more <tr> elements.
<table>
<tr>
<td class="name"> Apples </td>
<td class="value"> 2.33 </td>
<td class="amount"> <input type="text"></td>
</tr>
</table>
The script I'm writing would take whatever's in the text input field,
multiply it by the float specified in the value td and output it. However,
I have problems getting to that <td> using JQuery.
I tried something like parseFloat($(".amount
input").parent().siblings($("td.value")).text()) to get the value, but it
doesn't work - it seems to be trying to multiply it by every element
regardless of the class. I tried a <tr> where the only data was
integers...
2013-8-28 | 2.1 | 20
...and it spat out 4026. I have no idea why.
So, the question remains: how do I get the contents of the <td> with the
class value starting from the input on the same <tr>?
Monday, 2 September 2013
How can I open local files with link to access local files with jsp
How can I open local files with link to access local files with jsp
I developed an web application using struts 1.2 , I need to display files
within my local system(C:\Testing) in a link format.When user clicks on a
file name it automatically opens(no download option).File can be of any
type(pdf,excel,.doc...) I tried
<LI><A HREF="file:<%=filePath%>"><%=fileName%></A></LI>
or
<LI><A HREF="file:///<%=filePath%>"><%=fileName%></A></LI>
None of them worked..Any kind of help would be really appreciated. Thanks
I developed an web application using struts 1.2 , I need to display files
within my local system(C:\Testing) in a link format.When user clicks on a
file name it automatically opens(no download option).File can be of any
type(pdf,excel,.doc...) I tried
<LI><A HREF="file:<%=filePath%>"><%=fileName%></A></LI>
or
<LI><A HREF="file:///<%=filePath%>"><%=fileName%></A></LI>
None of them worked..Any kind of help would be really appreciated. Thanks
cmake error: The following Boost libraries could not be found
cmake error: The following Boost libraries could not be found
I'm using cmake and boost to make visual studio solution. my command is:
F:\C++\yapimpl\build>cmake .. -G"Visual Studio 11"
-DBOOST_ROOT=E:\lib\lib\boost
_1_54_0 -DBOOST_LIBRARYDIR=E:\lib\lib\boost_1_54_0\bin\vc11\lib
though I've set BOOST_LIBRARYDIR and BOOST_ROOT, it still says
boost_unit_test_framework could not be found.
the directory E:\lib\lib\boost_1_54_0\bin\vc11\lib indeed contains these
files:
08/08/2013 CSer 03:48 12,738,344
libboost_unit_test_framework-vc110-mt-1
_54.lib
08/08/2013 CSer 03:44 31,489,264
libboost_unit_test_framework-vc110-mt-g
d-1_54.lib
08/08/2013 CSer 04:10 14,109,766
libboost_unit_test_framework-vc110-mt-s
-1_54.lib
08/08/2013 CSer 03:59 32,856,094
libboost_unit_test_framework-vc110-mt-s
gd-1_54.lib
but seems those are not recognized. what's the problem? the Traceback is
here: http://codepad.org/zgL9tpjo
I'm using cmake and boost to make visual studio solution. my command is:
F:\C++\yapimpl\build>cmake .. -G"Visual Studio 11"
-DBOOST_ROOT=E:\lib\lib\boost
_1_54_0 -DBOOST_LIBRARYDIR=E:\lib\lib\boost_1_54_0\bin\vc11\lib
though I've set BOOST_LIBRARYDIR and BOOST_ROOT, it still says
boost_unit_test_framework could not be found.
the directory E:\lib\lib\boost_1_54_0\bin\vc11\lib indeed contains these
files:
08/08/2013 CSer 03:48 12,738,344
libboost_unit_test_framework-vc110-mt-1
_54.lib
08/08/2013 CSer 03:44 31,489,264
libboost_unit_test_framework-vc110-mt-g
d-1_54.lib
08/08/2013 CSer 04:10 14,109,766
libboost_unit_test_framework-vc110-mt-s
-1_54.lib
08/08/2013 CSer 03:59 32,856,094
libboost_unit_test_framework-vc110-mt-s
gd-1_54.lib
but seems those are not recognized. what's the problem? the Traceback is
here: http://codepad.org/zgL9tpjo
Subscribe to:
Posts (Atom)