Show an image on whole page [closed] - asp.net

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How can i show an image on whole page when user click a button?
(means i have several controls on page and want to show this image over all of them)

You can write this line in button click event
ClientScript.RegisterClientScriptBlock(GetType(), "key", "javascript: document.body.background = 'Untitled.jpg'; document.body.style.backgroundRepeat = 'no-repeat'; document.body.style.backgroundPosition = '300px 300px'; ", true);

Your looking for a Modal window, there are some great jQuery plugins for that. I really like one called Reveal.
To do it yourself. Set a "position: absolute" and a "z-index" that is higher than your other elements on a div, and trigger it to show/hide with javascript and you should be fine.

Related

Getting the tcmid of the selected item on custom button click [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a custom button in the ribbon.
When i select any item (Component or Page) in tridion and click the custom button, i should be able to get the tcmid of the selected item.
var selectedID = selection.getItem(0);
in the _execute method, from my tutorial at http://www.curlette.com/?p=279
Extensions.WhoDidIt.prototype._execute = function WhoDidIt$_execute(selection, pipeline) {
Please spend some time (around 1 week) looking at existing examples and solutions, including my GUI Extension tutorials. Please do make a strong effort and try for yourself before quickly posting here - you will learn more and have a greater understanding.
GUI Extension Samples:
http://jaimesantosalcon.blogspot.com/
http://tridionfanboy.wordpress.com/
http://albertromkes.com/
http://yoavniran.wordpress.com/
http://sdltridionworld.com/articles/sdltridion2011/tutorials/GUIextensionIn8steps.aspx
http://sdltridionworld.com/community/2011_extensions/linkedin.aspx
http://www.curlette.com/

How to come back from iframe to main page to work on main page elements - using selenium webdriver [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have used Driver.switchTo().frame("XXXXX"); to go to iframe on the main page
Now I want to go back to Main page to work with other operation using selenium webdriver
I had tried to get window handles
but I can't get iFrame window handle
driver.switchTo().defaultContent();

How to display only the form data on a page without the header using Drupal 7 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Firstly apologies I've re-edited this as the original was so vague.
What I have is a Drupal overlay which only displays a form. The issue is the overlay also displays the page header such as the logo and menu links. I don't want it to display this and was hoping someone could tell me how to prevent this without using CSS to hide the header div within that specific overlay, as although this is a temporary fix, is poor coding.
Thanks,
Rick
You can use drupal_get_form('form_id') to get the complete html of the form in a div and use css/js to get desired result.

Open button in new tab/window [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is it possible from a users point of view, to click a button and the result to load in a new tab/window, not automatically.
Like if you middle click on a link in some browsers or right click -> Open in new tab/window.
Can you do this with a button? Or would you need a browser plugin?
Is this at all possible? I know you can make custom buttons and such but this is more out of curiosity.
Thanks.
When setting up the form, you just need to change the target:
<form action="form_action.asp" method="get" target="_blank"></form>
You can just use HTML:
<a target="_blank" href="YourAmazingURL">Click here for Amazing URL</a>
Another Example:
<a target="_blank" href="http://www.google.com/">Google</a>
This takes advantage of the target attribute.
More information on the target attribute: http://www.w3schools.com/tags/att_a_target.asp
Also: http://www.w3schools.com/html/html_links.asp
XHTML:
For XHTML, just do this:
Click here for Amazing URL
Or, again:
Google

Text area spell Checking pop up not displaying? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
In my site there is a text area, where i want to be spell check. But this text area only display wrong word but not appear a popup for right words.
what i can do.
" Actually there is flash work on the site also. and banner to each side of the content, and that text area is in the center.. so why the pop up not displaying..??????
"
Can anyone notice this type of problem, where textarea self spell-checking popup not appear..????
At last i find, the answer why not appear the pop-up on textarea. Because on my site i restrict the user not to copy any content of page.. when i disable that js. then its working..
Now i will find another solution for it but the main problem is solved.!

Resources