i am trying to use the Curtain.js plugin on a website i am making for a friend.
The site is still not ready, there are some "pages" missing, but today i noticed that there is something wrong.
When i preview the website on Safari (5.7.1) the website gets "stuck" between two of the pages. it never goes down to the third page...
I also notice that during the "scrolling" from the first to the second, something strange happens to the scrollbar!
When i preview the website on Chrome it works fine.
Do you see this problem also? in other browsers?
Any ideas what is happening here and how to fix it?
I don't have a clue where the problem is, so i don't know what code to post, but here is the link for a "test page" of the website:
http://popo.webatu.com/hottalent_test/TalentShow.html
Thank you!
ok, i think i found it!
Maybe other people have the same problem, so i'll post here what the problem is.
in my contact form, i had this:
<label><span class="formQuestion">Name:</span>
<input placeholder="Your name" type="text" tabindex="1" required autofocus>
</label>
i tried many things, and i noticed that when i remove the "AUTOFOCUS" from that input things seem to work fine.
so now my code looks like:
<label><span class="formQuestion">Name:</span>
<input placeholder="Your name" type="text" tabindex="1" required>
</label>
Any ideas why this is so?
Hope maybe some day this is helpful to someone else! ;)
Related
Have a very strange issue that I haven't encountered before,
Take for example: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_form_submit and replace the input type=text to password like this:
<form action="/action_page.php">
First name: <input type="text" name="FirstName" value="Mickey"><br>
Last name: <input type="password" name="LastName" value="Mouse"><br>
<input type="submit" value="Submit">
</form>
For some reason, in Firefox only I'm unable to switch the languages for the input[type=password], therefor, my passwords don't work in the app, in every other browser the password input works fine with switching the language ...
Also, in FF, if I change the input back to text - then I'm able to switch languages ...
I'm using MacOSX & Firefox Quantum 65.0.1 (64-bit)
Any ideas ?
A similar bug in Mozilla under Mac Can't switch keyboard layout on input type="password" is closed as invalid, but it seems under Ubuntu it's a bug indeed.
I’m trying to link web-pages via HTML dropdown menu on wix platform. Since Wix doesn’t support external coding, I’ve to find a way how to embed URL into HTML. Unfortunately, I’m unable to figure this out. I would greatly appreciate it if anyone can help me out. This is the code I’m using.
Search by Continent:
<select name="none"id="s">
<option selected="selected"value="one"></option>
<option value="two">Africa</option>
<option value="three">America</option>
<option value="four">Asia</option>
<option value="five">Australia</option>
<option value="six">Europe</option>
<input type=button value="Go" onclick="goToNewPage()"/>
</select>
You can use this HTML embed code
<p>Visit google</p>
Visit google
I would like to know how to use in bash in order to first chose some parameters on a internet page then upload a *.txt file, and be redirected(after file analysis) to an other page and finally to press on a button to download a new file all this in bash.
I found a lot of information on forums regarding cURL and how to fill in forms and download files but very often you could juste download the file by accessing with URL/file.txt. Here it seems to me that it is different because the page uses some code in order to analyse my .txt file and output a new one.
The site is MSC server and I need to check the CADD checkbox in option 2, upload a *.txt by choosing file, click on upload & submit and after beeing redirected click on download result. Here is the html important parts
first page:
<form action="UploadServlet" method="post" enctype="multipart/form-data">
Apply MSC to: <input TYPE=checkbox name=measure1 VALUE=CADD> CADD 1.3
<input type="file" name="fname" id="fileChooser" size="16" /><br>
<input type="submit" value="Upload & Submit" size="20" onclick="document.getElementById('pleaseWait2').style.display = 'block';"/>
second page:
<form action="DownloadServlet" method="post">
<input type="submit" value="Download Result" color ="#ff0000" size = 200>
That is what I tried
curl -L -F measure1=CADD -F fname=#file2.txt -F submit="Upload & Submit" http://pec630.rockefeller.edu/MSC/
That was what I tried for the first page but it only shows me on the terminal the HTML code of the same page not the one where I should be redirected. And even if it gives me teh HTML of the second page, I've got no idea on how to download the file, firstly because the URL changes so I don't know what to put for the URL (I think it's something with cookies but I'm not sure) and secondly even when I try to click on a button and to download a file (for example, ont the example button on the first page, it still shows me the HTML code and it doesn't download the text file).
I hope I was clear enough and that you will be able to help me, I'm still a beginner in programmation and It's been 10 hours since I started to find how to do this:/.
Also since it's my first question (I normally always find previous questions that were like mine) I take this opportunity to thank you are all because your answers are always very clear, and I hope I'll be able to help other people to when I'll understand more of what I do :)
I didn't found the kind code I was looking for (I suppose it is a problem with cookies but even when I tried to handle them with cURL it is not working) but I found a way to get around "any" (I think) cURl problems. Maybe it will help others:
Just copy the headers your computer sends to the site as you a doing what you want:
in google chrome
view -> developer -> developer tools -> do what you want to -> right click on the name which pops up in the side bar -> copy as cURL -> paste it in your code
It's certainly not the best way to do it but if you're desperate as I was it works:)
When I write the blow code in Watir-webdriver:
$browser.checkbox(:index,0).click
It gives the following error:
element not visible (Session info: chrome=48.0.2564.97) (Driver
info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)
and then I have written this code $browser.input(:index,0).click then it reports this error:
unknown error: Element is not clickable at point (952, 17). Other
element would receive the click: ...
(Session info: chrome=48.0.2564.97) (Driver info:
chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)
But the element is clearly visible and also the given above two lines of code cleanly works in watir-classic, we do not even need to scroll the screen.
Can anyone suggest me why it is the case? Why this watir-webdriver is not as comfortable as watir-classic?
<td class="centred"> <label class="label-checkbox"> <input type="checkbox" data-ng-model="cover.IsSelected" class="ng-pristine ng-valid"> <div class="fake-checkbox"> <span class="glyphicon glyphicon-ok"></span> </div> </label> </td>
The first thing you need to do is to update your chromedriver, as version 2.9 is 2 years old. That binary needs to be kept up to date with current versions of chrome. It is quite likely that this alone will fix your issue.
If it is an issue of visibility... The purpose of Watir (and Selenium and WebDriver) is to mimic the action of a user. If the checkbox isn't visible to the user, you shouldn't be able to click it in your test.
If the checkbox is something that isn't visible at first, but then becomes visible, you can do: browser.checkbox.when_present.click (note that index: 0 is the default behavior and is not necessary)
If the checkbox has some exciting javascript things that are covering it up in a way that it is never going to be visible, and clicking on something that is visible throws the "Element not clickable" error, you might have to do browser.checkbox.when_present.fire_event :click
That method does not mimic what a user actually does on your site, so it should only be used as a last resort.
I have website based on Umbraco 5. I have installed contact form plugin (http://cultivjupitercontact.codeplex.com/).
And on the web page at the end of this contact form there are always characters "". It looks like that:
...
<input type="submit" value="Send" />
</fieldset>
<input name='uformpostroutevals' type='hidden' value='somevalue' /></form>
I suspect there is something wrong with encoding. I have tried to change it(to ANSI or UTF-8 without BOM but it didn't helped. Perhaps I have changed it in wrong file, cause I don't really know where exactly this ''is coming from. All I know it came with this plugin.
On different server those extra characters are "".
How can I get rid of those extra characters?
Any help much appreciated!
You need to upgrade to the 5.0.1 patch release or later.
This is due to a bug that includes the BOM (Byte order mark) for UTF-8 files as detailed in the bug report "Text encoding in file when saving the template".
I can verify that upgrading to 5.0.1 fixed the issue.