Questions tagged [restriction]

A restriction is anything that constrains or limits the code in some fashion.

Restriction is a very broad tag that denotes a requirement to restrict the code in some fashion.

706 questions
0
votes
1 answer

Jquery character restriction in getSelection();?

I have a jquery script which enables to copy selected text in desirable field with click on corresponding button... Now I need to restrict those inputs id different amount of characters... First input should have max of 5 characters, second max of…
dzordz
  • 2,277
  • 13
  • 51
  • 74
0
votes
3 answers

how to restrict an input in c

I want to prevent my program from any other types of input instead of int. How to check the type of an input without assigning it to a variable? in C
xzvkm
  • 187
  • 3
  • 12
0
votes
1 answer

Restrict category by age

I want to restrict a certain category number by age from userprofile. Note that the age is being added by typing a number not by selecting day, month and year. Here is the code for editing the profie: tr("Age", "
0
votes
1 answer

Restriction.or in Hibernate

I have this select in SQL. How can I convert it to HQL using Restrictions.or ? select * from users where users.user_type = 1 or user.id = 1001; 1001 is not of user_type = 1
Mythul
  • 1,807
  • 7
  • 34
  • 53
0
votes
1 answer

Java code needs to restrict the user input

I got a serious problem on my code. I got a swing JDBC code which I need to fill a table of names, addresses and an ID for the person, different than the table's ID. I created a swing input code for it, however, I wish it NOT to include the ID…
0
votes
1 answer

Adding restriction to a SQL Server stored procedure script

How I can add to these 2 scripts below a restriction, so it wont allow creating a hero with less than 3 characters in its name or when changing the name of the hero it wont allow less than 3 characters as well? Currently everyone can create a hero…
NMALKO
  • 168
  • 1
  • 7
0
votes
0 answers

Restrict url access just from a specific site

I have an application hosted on distant server and it will be loaded by other site in an iframe, it there a way to restrict the access to it, I mean prevent the access to it by using its url, and give the access to that site only
Kamel Labiad
  • 525
  • 1
  • 6
  • 26
0
votes
3 answers

How can I validate the text-box for restricting user to input for | character

I have placed one text area and I want to put restriction on it .. Only special characters | should not be allowed to input in text area because I'm using | character in split function.
Fatin Az
  • 509
  • 2
  • 6
  • 8
0
votes
1 answer

Hibernate Restrictions.or

I wonder why the Restrictions.or only can accept 2 parameter. I Need to do something like below. (A and B) or (C and D) or ( E and F ) or (G and H) or ... Any idea can achieve this? Thank
0
votes
2 answers

Restrict UIWebView to stay on Facebook page

I need to make a simple UIWebView for iPad, for event when users will login with their accounts and be able to see fixed Facebook public page and be able to scroll this page, comment or like posts but not be able to go to somewhere else except this…
Olex
  • 1,656
  • 3
  • 20
  • 38
0
votes
2 answers

Restrict application usage

I would like to restrict people using my application to one Computer, so I was thinking about IP's.. but people in some countries get new IP's after they reboot their Internet.. so I need something better to identify the users, like some value that…
kewl
0
votes
1 answer

Restrict access to assets from asset pipeline?

Is there some way, any way to limit access to the rails asset pipeline for users browsing your app? I want to limit access to certain CSS only when a user is logged in, rails should block access to it otherwise. Could not find anything relating this…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
0
votes
1 answer

Why is this XML Schema element not correct?

This is an excerpt from my schema:
user1934428
  • 19,864
  • 7
  • 42
  • 87
0
votes
1 answer

PHP upload images only error! how to fix this?

Possible Duplicate: Strict Standards php error Hi have a problem with a upload script in php. I am trying to make it accept only images but i get an error and i dont know how to fix it. It works fine when i remove the only image part. I hope…
0
votes
1 answer

Stop div from being dragged above top 300px

Stop div from being dragged obove 300px top without useing contain. so far i made it flicker and get back.. or just get back to 300px after drop how can i limit it in a proper way? i need it to DO NOT Drag beyond 300px top while drag, and not like…
Mike
  • 741
  • 13
  • 40