JQTouch loading external html page - iphone

Do we need to have all pages inside divs in one html page?
In case of my website I would need to create a huge file to accomplish that.

Short answer is that no, you do not. In your link tags, instead of typing:
<a id="#linkTo">Link!</a>
You would type
Link!
Your content would have to be an html snippet instead of a fully baked web page. You can look at the demos to see how this is done.

Related

How to make a website that redirects to a random link on a list?

I'm wanting to know how to make a redirect a simple way.
I know nothing about code (Sorry for my ignorance) but I want to learn.
So I want to make a website that only redirects, so when someone opens it will get redirected to another website.
The tricky thing here is that I want the website to select a random link in a list I will provide, so I thought I could do it on a free website creator (wix.com) and I wanted to know if someone could help me do the code for me.
Thank you a lot.
You will need Javascript and HTML for do this.
HTML just do static things, so you will need create a list with Javascript and then modify the link on html page.
Just add this to the Head on your HTML file:
<script>
window.location.replace('http://www.reddit.com')
</script>
That will redirect to Reddit as soon as you open your html file.
I recommend that you use the "IF / Else" or "for" function to redirect to different websites each time you open your web page, because you said that you are learning, so go slow. Just study Javascript or Dart and you can do whatever you want on your site.

Whatsapp sharing button for blogspot blogger without javascript

I am trying to add following code in blogger temlate (blogger.com). but failed
<a expr:href='"whatsapp://send?text="data:post.title - data:post.canonicalUrl"'>Share of Whatsapp</a>
I want to make like this for whatsapp sharing without using any script.
e.g.
<a href='whatsapp://send?text=Google - http://www.google.com'>Share of Whatsapp</a>
Try:
Share
With JavaScript it would be a lot easier, because the parameters need to be url encoded. You could use encodeURIComponent() to encode your strings.
If you still don't want to use JavaScript, there are plenty of free urlencoder online.
So if you want to share your problem for this page it should look like this:
Help me with my problem http://stackoverflow.com/questions/30252484/whatsapp-sharing-button-for-blogspot-blogger-without-javascript
<a href='whatsapp://send?text=Help%20me%20with%20my%20problem%20http%3A%2F%2Fstackoverflow.com%2Fquestions%2F30252484%2Fwhatsapp-sharing-button-for-blogspot-blogger-without-javascript'>Share the problem</a>

typo3: is there a way to see the pages and its html templates in one place?

in typo3 admin site, I am using TemplaVoilà to make html templates. I have many pages in my site, so I wonder if there is a way that I can check which page is using which html template in one overall page, instead of checking it one by one, something like:
contact page: home.html
employer page: employer.html
...
You can use a hook to add this information in the TemplaVoila s module.

Get google to index links from javascript generated content

On my site I have a directory of things which is generated through jquery ajax calls, which subsequently creates the html.
To my knwoledge goole and other bots aren't aware of dom changes after the page load, and won't index the directory.
What I'd like to achieve, is to serve the search bots a dedicated page which only contains the links to the things.
Would adding a noscript tag to the directory page be a solution? (in the noscript section, I would link to a page which merely serves the links to the things.)
I've looked at both the robots.txt and the meta tag, but neither seem to do what I want.
It looks like you stumbled on the answer to this yourself, but I'll post the answer to this question anyway for posterity:
Implement Google's AJAX crawling specification. If links to your page contain #! (a URL fragment starting with an exclamation point), Googlebot will send everything after the ! to the server in the special query string parameter _escaped_fragment_.
You then look for the _escaped_fragment_ parameter in your server code, and if present, return static HTML.
(I went into a little more detail in this answer.)

How can I distribute a bookmarklet in FBML?

I have a JavaScript bookmarklet that I'd like fans of a certain page to take. Unfortunately, the only way I've found of distributing it is giving them the raw JavaScript source, which is then problematic to add as a bookmark.
Ideally, I'd use
Drag this to the bookmarks bar
But FBML filters out the JavaScript href.
Any advice?
If it is not possible using fbml, I would share a link to a web page where you put the actual bookmarklet. It is the opportunity to display on this page a tutorial on how install/use the bookmarklet.
Huh. Looks like dragging the bookmarklet in text form is sufficient to create a bookmark.