How do i fix this problem with my html href code? - html

So I am trying to make a website for some code homework I have but one of my html link is not working. I've tried deleting the button function but it is still not working. I pasted the code from the other s and they seem to work. Only this won't work.
<nav>
<button> INFO </button>
<button> TICKET PURCHASE </button>
</nav>
The 'INFO' works, but the 'TICKET PURCHASE' one doesn't.
<nav>
<button> INFO </button>
TICKET PURCHASE
</nav>
I thought maybe my button was doing something so I removed it, but it still wouldn't work. I even pasted the name of the file into the space before ".html" part but it still won't work. I don't understand and to me, the code looks like it should work. I am using a local file thing because I do not need to post this online, so do not worry that that will affect the work.
I expected to be able to transport smoothly from one web page to the other, but this specific line of code does not work. I waited a long time, thinking it was just lag on my computer, but it just wouldn't work. Do note that changing the name of the local file or removing the space between them does not do anything.

You have to change the file name inside href. Thanks
Example 1 - Change Ticket Purchase.html to TicketPurchase.html
TICKET PURCHASE
Example 2 - Change Ticket Purchase.html to Ticket-Purchase.html
TICKET PURCHASE

Spaces are not allowed in URLs, that's why websites with long names are written together as a word. Putting space in a link will make a server convert the space to some special character. For this reason, files on your website should be named without spaces in between them.

Change the name of the file from "Ticket Purchase.html" to "ticketPurchase.html".

See docs: https://developers.google.com/maps/documentation/urls/url-encoding
Some characters cannot be part of a URL (for example, the space).
So it should be:
TICKET PURCHASE

Related

Can't access Edit button for custom JIRA field, due to HTML tag in field description

In our JIRA instance, someone thought that because you could put html tags in description fields, that meant that you needed a full complement of tags to use them-- like, including <html> and, critically </html>
So, now we've got a custom field with a description containing a </html> tag, and as you might expect, the browser is not showing anything past that last tag, including any option to delete or edit the field.
Is there any way to use an API, etc to delete this field or change its description?
I'm on JIRA 4.1.2 (I know...)
Managed to solve the issue...
I used either the JIRA Advanced search, or right-click>>Inspect
element to get the ID of the field.
Then hovered over one of the "Configure" links that were showing to get the URL to the configure screen.
Then, I put the correct ID in the URL, and I was able to get back in and remove the offending tags.
That resolved the issue on the Custom Fields screen. Unfortunately, this technique had also been used on the "Field Configuration" screen, which is organized a bit differently.
The URLs to the "Edit" screens from the field configuration are formatted differently, with id= being the particular field configuration you're working with (don't change this one), and position= being the position in the list of the field you're working with (0 based index).
The easiest thing for me was to
Go to the field above the one that was messed up
Click on the Edit link, then
Increment the position parameter in the URL to give me the field I actually needed to change.
Deleted out the rogue HTML and everything was back to normal.

Use a Visio PageName as an Email Subject

I hate to do this, but I have the same question as the following link: Visio 2010 using a page name in mailto link
I have attempted to use the answer given but all I'm getting is PAGENAME() in the subject field of the generated email. My Visio file is rendered to a html file where this link will be used.
I'd have added a comment to avoid creating a new question but don't have enough Rep to follow up on the comments there.
If anyone can give me a pointer, that'd be great. The line I have at the moment is
>
mailto:my.email#email.com&Subject=PAGENAME()&Body=Text...
Okay, looks like I've worked this one out.
I needed to right click the object & head in to the "Show ShapeSheets" window.
Once in here, adjust the 'Hyperlinks' entry: In the 'ExtraInfo' box change:
="subject=PAGENAME()"
to
="subject="&PAGENAME()
Logical when you look at it.
I do have the problem now that when Visio renders the html files, it doesn't use the foreground PAGENAME() in the same way was when you insert PAGENAME() into an object. The email title is always the background name & not the foreground.
I doubt there'll be a way of resolving that one, but glad I got to see it in action.

How to get rid of "Show trimmed content" in GMail HTML emails?

I send a lot of HTML emails. The problem with GMail is, if there are more than one emails with the same subject, it hides some similar content and shows a "..." to show the "trimmed content". This screws up with my formatting.
If changing the subject is not an option, is there is any way to avoid this behaviour?
Edit: I should clarify that I programmatically send emails using Amazon SES from a php script. That is why I posted the question in Stack Overflow.
I've just encountered this problem myself, and from my investigations it seems that GMail does indeed trim the content if it is similar to the preceding emails.
My solution is simply to insert the current time stamp at the end of every email:
[15:02:21 29/01/2013] End of message.
To prevent this in HTML emails I'm adding two invisible unique elements: in the beginning and at the end of the mail. Like this:
...
<body>
<!-- this ensures Gmail doesn't trim the email -->
<span style="opacity: 0"> {{ randomness }} </span>
...
<!-- this ensures Gmail doesn't trim the email -->
<span style="opacity: 0"> {{ randomness }} </span>
</body>
{{ randomness }} is being replaced by my templating engine with the value of Date.now() (I'm using node.js, could be anything producing unique output)
Voilà! Finally after long testing I have found a solution to this problem.
What Gmail does is it puts in the "Show Trimmed Content" option if the message is similar to previous ones, or the subject of the email appears as it is in the content of the email.
To avoid this, simply try inserting any randomly generated string inside your mail which will make your email messages different and will not let Gmail insert the Show Trimmed Content option.
If you cannot change your subject you can surely go for the optimization of HTML mailers.
Because HTML file size allowed by Gmail is 102kb. If Gmail finds that your HTML file size is above 102kb then it will show message clipped at the bottom of your HTML mailer. File size is regardless of the image size which are included in the mailers(I am considering image link here).
If there are many white spaces and carriage return in your HTML file. So best option is to inline your CSS using mail chimps inline CSS tool and then compressing your HTML file (Then are numerous HTML compressors available online). This 2 tricks should surely work in order to avoid your email has been clipped message.
For more reference can visit this link.
Settings --> General --> Conversation View --> Conversation View off
This will basically not group the emails plus won't trim the contents.
Inserting one or two random characters below your signature seems to confuse gmail enough to leave content untrimmed but also makes me look like a drunk crazy person.
This issue needs to be resolved if google wants people to take gmail seriously.
I would like the option to integrate more google products but flubs like this which should be no brainers make it difficult to commit.
In addition to the other answers, be aware that messages over 102K in size are likely to be trimmed. Watch out for bloated CSS or inlined images contributing to a file size that's too large.
Edit: Some sources of this information for the curious-
Email on Acid
SendLoop
Pinpointe
There are some workarounds in this thread:
http://productforums.google.com/forum/#!topic/gmail/yoAlDr3PyN4
Workarounds seem to be lame though. I hope you have a second name.....
I just remember that there was one recommendation, to use a different
name in your signature.
If your name is Jim, try using Melvin, or Horatio. That should prevent
the trimming, but it's not guaranteed.
I think this would be best option to avoid the "Hide expanded content Gmail" and prevent the content be stripped.
There are two ways to do it.
Just add a random number at the end of your email
Just adding bookmarklet to your bookmark toolbar and just click when you are going to compose an email
For more details please follow the below link
Refference
Gmail does this if the mail content is the same if the receiver has the same content from the same address. Therefore you should be generating some random ID, or make changes inside your HTML dynamically. Also, if you put random ID inside your content with hidden type will be ignored hidden type.
Solution: while generating HTML with python, I have decided to put today's date.
import datetime
datetime.datetime.now().strftime("%d %B %Y, %H:%M:%S %p")
13 August 2020, 20:29:15 PM
Just insert any unique content after the trimmed contents. That can be anything. Even you can make it invisible by adding it in very light color, like light gray.
Just delete the little bars right above your gmail signature that separate your message from the signature.

URL#whatever issue with length of #tag

Here's a question i'm finding hard to answer with google and seem to be having problems with it on my site.
I am encoding/decoding user id's just to confuse matters and would like to link to parts of a page using anchors
Thing is.. My encryption is making a nice secure long string but I think there must be a limit to the length of the # anchor names because it works when its shorter, but not when its longer.
Does this seem to be true?
An example of the hash tag url is http://wgwegw.co.uk/wegweg/protected/view-game/wegweg/platform#x243j3f41684w2w2m594n416
For example i have a link:
Go to comment
When i click on it.. it opens up using HTACCESS file redirects. if i use javascript window.hash it returns the hash so i imagine the hash code is not affected by the htaccess redirects.
I land on the page: http://.co.uk//protected/view-game/*/platform#y213j3f41684w2w2m594n416
On that page in html is an anchor name: <a name="y213j3f41684w2w2m594n416"></a>
It does not skip to that part of the page?
OK here you go.
You won't believe this but I have suffixed an 'a' and now it works.
What on earth?
EDITED//
Could it be because i have an id and a name that equal the same? so i have a
<div id = "y213j3f41684w2w2m594n416">
and I have a
<a name = "y213j3f41684w2w2m594n416" />
So when i attach a to the end of the name.. it no longer is the same as the id and thus doesn't get confused?
EDITED//
If I try this on W3 example tweaks it still works so it can't be that?
Aghh now it's fixed i am desperate to know why it's working.

Difference between twitter share buttons

I simply want to add couple share button onto my page. And I see that people recommend different ways of doing it:
I see some articles using home?status:
<a href=”http://twitter.com/home?status=Currently reading <?php the_permalink(); ?>” title=”Click to send this page to Twitter!” target=”_blank” rel=”nofollow”>Share on Twitter</a>
and some using share?url:
Tweet
What's the difference?
Your first example simply updates the status with the text you enter. The second example has a lot more functionality.
share?url supports class attributes for the anchor tag. In the anchor tag you can add things like data-related to suggest accounts the user will follow after they share the content or if you don't supply a url it will look for the current url the call is being generated from and share that. It has a lot more functionality vs the dumbed down home?status call.
find more here: https://dev.twitter.com/docs/tweet-button