can someone give me some help...
all example code on http://www.datatables.net/examples/styling/index.html are the same... I have hard time understanding this... please can someone really need help...
can anyone help me cause I'm new to these... but it gaves me always..
$(document).ready(function() {
$('#example').dataTable();
} );
all link sample on style I see are like these...
You need seriously read information about of Javascript, html, css and everything about of web page structure. The code that always you see refers to the overall structure of the datatable. If you want see the changes between examples simply select the tab css or html next to Javascript.
Sorry for my bad english.
regards.
Related
I have aroung 6k posts with images and now I need to link all them to the source image (to open them with pretty photo and make them "responsive") there are no custom fields with src links, simply html code with src.
Any suggestion in how to do it?
Thanks in advance!
You could use a javascript code that you embed in your template. This code looks for all images in the post content and modifies them as wanted. With jQuery something like that:
$("img").attr("src", function() {
return "/resources/" + this.title;
});
- taken from the jQuery Docs
The down-side of that is that this script has to run everytime the post is requested again. The alternative option would be to write a php script to replace all links in the database once. That is probably more effort at first but in my opinion worth it since its a one time job.
I'm looking for leads on how to implement a (search-)result browser without using paging. But more like how twitter/facebook do it.
At first only 10 or so results need to be displayed but when scrolling down, more results (if any) should be added asynchronously. I've found examples with a [more] button at the end but I would like the browser to automatically fetch more when the bottom of the pane is reached.
I'm having trouble finding the right examples. Probably because I don't know what keywords to google on...
Hope you can help me out in the right direction!
Kind regards,
Paul
I advise you read following article regarding this subject:
Infinite Scroll in ASP.NET MVC
There is also a sample application available here.
Refer to the Replace paging with jQuery and subsonic continuous scrolling method blog post.
Have a look at the following pages:
On Scroll down how to make ajax call and get the respone data
create-a-dynamic-scrolling-content-box-using-ajax
I believe that should help you!
I want to implement social buttons in my website. What is the best script choice according to your experience?
I found this: http://www.addthis.com/
Is it a long way to do a simple thing?
It looks like you just need to insert the generated block code
anywhere you want the buttons to show up in your document. For
a pure html page this would be extremely simple (cut and paste).
For a MVC or serverside generated website it might be a little
more tricky, but you'd just have to paste the same code in your
view, and maybe call a helper to include
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f904e27168d5473"></script>
in the head of your document, or inline with the rest of your code.
I guess it really depends on how your website is set up.
I'd rate it from extremely easy to slightly moderate.
I'm having problems with something which seems like an easy task, and most probably a stupid question. It will probably be my all time low experience in programming but I would really appreciate any help!
I'm using Galleriffic to display my portfolio site, and I am looking for a way to directly link to an image+description not being the first in the gallery. I would like it to link from other webpages, or from plain text/pdf documents.
In short, I would like it to link to a webaddress of slide 5 with something like:
Slide 5
but doing it this way obviously doesn't work.
Although others have tried to explain:
https://stackoverflow.com/a/7910501/1074297
jquery cycle link from external page to specific slide?
I can not seem to accomplish it, and it does not help at all that I am not a programmer.
not sure if it is too late, have been search the solutions for whole day, final found out the example 4 in the official website actually make the #link show on the address....so you can actually link the specific image ('slide'') from external page...amazing!!!!!
check this out
http://www.twospy.com/galleriffic/example-4.html#5
You can find the script after all the or just before ... and place it to your template...it works well for me, hope it helps, good luck
I'm not that great at jQuery. That said I found this effect used in a template I wish to duplicate. It has a slide show running in a loop with fly up buttons at the bottom. I was trying to decipher the code but its pretty hard.
Questions:
Is this just custom code or is there a plugin out there that works like this?
Is this a combination of plugs?
Any suggestions on which plugin is being used here would be much appreciated.
Thanks!
Here is the example http://static.livedemo00.template-help.com/wt_34641/
Try using Nivo slider, I find its easy to use and pretty flexible :)
[http://nivo.dev7studios.com/pricing/][1]
[1]: Nivo Slider
seems to be:
$(function(){
$('.box4').hover(function(){
$(this).find(".m1").stop().animate({top:-143}, "normal")
}, function(){
$(this).find(".m1").stop().animate({top:0}, "normal")
});
});
If I understood the question correct.