several pages Form in jqtouch? - forms

I'm trying to set up a form in jqtouch with several pages. Basically the user will answer couple questions, go to the next page, answer couple more questions and submit. But Jqtouch doesnt work if I set up one form and put the pages inside of the form tags. Any suggestion how can I solve this problem?

I had the same problem. You're probably using a type of master page to do this, try do pages with form tag like you page tag, eg:
<form id="home" class="current">
<div class="toolbar">
<h1>Title</h1>
<a class="back hidden" id="btBack" runat="server">Back</a>
</div>
<ul>
...
</ul>
</form>

Related

Search button - form action?

I've read an tutorial to make an search form for your site. This is the code.
<div class="arama">
<form action="#" method="POST">
<input type="text" name="kelime" placeholder="Cauta..."/>
<button type="submit" name="gonder"></button>
</form>
</div>
but it did not explain how to make this thing work. I want to make this search button to find anything is on my site. Ex: If i press "A" on search then it will give me on a different page more links.
Like on this website: http://www.dizibox.com/?s=su (search anything else)
Explain me please how should I do it. I don't want to just copy-paste.
Thank you. ( I think that it's something what implies article title.)
EDIT: I managed to do something with google CSE, but it's on their own layout, not mine. Question is still avaible. Thank you
EDIT2: RESOLVED. ANSWER HERE: Google Custom Search (CSEv2) help on styling?

Customizing Addthis Plugin - passing url using classic asp

I am having lots of problems while coming up with a solution.
I have a website that share text or image greetings( text greeting only at this time) on facebook or twitter etc. I planed to use Addthis.
So I created a function like this
<%
Function DisplayShareDiv(surl, sT, sSummary)
%>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style"
addthis:url="<%=surl%>"
addthis:title="<%=sT %>"
id="addthis_container"
addthis:Description="<%=sSummary%>">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_google_plusone"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">var addthis_config = { "data_track_addressbar": true };</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=###################3"></script>
<!-- AddThis Button END -->
<%
end function
%>
Now problem is that title appears when click on facebook or twitter but url doesn't. I also want to add the description to it. I have og tags too but they need to be dynamic too and i am having problems with fb not picking up that info either. Even though i have run it through debugger. I am at it for 2 days and it is now all a mish mash. I would really appreciate if someone can please help me!!
Now I'm getting this. Is that as you require?
I think facebook was picking up an old version of your page.
The text it picked up were from the OG and description meta tags on your home page.
If you run your page through their debugging tool, that forces it to scrape the latest version of your page. Plus you might get some useful info too. https://developers.facebook.com/tools/debug/

Facebook like on more posts works as if I liked only 1 post

Tristans.tk
This is my website.
This is the div that holds the like button:
<div class="like_holder">
<div class="fb-like" data-href="http://tristans.tk/view/<?php echo $news_item['ID'] ?>" data-send="true" data-layout="button_count" data-width="136" data-show-faces="false">
</div>
</div>
Now the problem is if I click the like button, it likes all posts.
How can I make it that it likes individual ones? They clearly have different urls!.
can you try making the og:url meta tag in you page dynamic and let us know if that fixes the problem?
thanks.

How to find jsp filename for a UI element on a webpage

Hi and thanks for the help,
I am trying to add a button on my company's intranet site, but dang if there aren't 1000 jsp files obscuring my effort.
How do I find out which file contains a specific UI element?.
Here is what FireBug shows me:
<div class="TabContent TitleTabContainer">
<a class="TabTitle" role="tab" onclick="return !1;"href="javascript:void(null);" title="Documents" style="width: auto;">Documents</a>
</div>
Thank you,
WH

WebMatrix - Partial View Updates

I have a simple default page that renders 3 different content pages.
<div style=" float:left;">
#RenderPage("/Content/AddCounty.cshtml")
</div>
<div style=" float:left;width:300px;">
#RenderPage("/Content/AddTown.cshtml")
</div>
<div style=" float:none;width:300px;">
#RenderPage("/Content/AddCompany.cshtml")
</div>
These pages have kind of same fields like id, text_name.
All of them have forms in it with Post method and submit button.
how to achieve partial update as we used to do in asp.net ?
your help will be appreciated.
Thanks,
Talha
Use jQuery to post the form values and update the DOM. Have a look at the jQuery Post API